What really needs to be done is to create an API call that will allow programmers to add entries to file 2 and 200 in one call. As Dave pointed out, the screening login in the database won't allow one to put an entry in all at once. It has to be done over the course of 2-3 calls.
Kevin --- Lloyd Milligan <[EMAIL PROTECTED]> wrote: > RE: [Hardhats-members] UPDATE^DIEEvidently mine is a > minority opinion, but I think it is OK, even > commendable, to use UPDATE^DIE to pre-load File 200. > In fact, ^XUSERBLK "Grant Access by Profile" > constructs an FDA and calls UPDATE^DIE, so what can > be wrong with that? > > I know of a bug in one of the File 200 > cross-references at LAYGO^XUA4A7, where it assumed > that DIC(0) exists--That one is easily circumvented > by setting DIC(0) in your code. Possibly similar > problems exist in other indexes, but I doubt this > has relevance to the error you observed. > > To troubleshoot I would suggest constructing a > minimal FDA and then calling UPDATE^DIE to create a > single entry. You don't show the value of key > variables at the point of error, or the code used to > construct the FDA or IENS. Therefore, it is > difficult to make a constructive suggestion. > > Lloyd > > > ----- Original Message ----- > From: Theriot, Derek > To: hardhats-members@lists.sourceforge.net > Sent: Tuesday, June 21, 2005 5:10 PM > Subject: RE: [Hardhats-members] UPDATE^DIE > > > I am very new at this so I'm not sure what you > mean by building the entries incrementally. Do you > mean inserting the data straight into the globals? > I was hoping to use UPDATE^DIE since it does all of > the indexing...(at least that's what the > documentation says). > > Anyway, can you provide me with a starting point > and maybe a short summary of what would be involved. > > > What I am trying to do is populate file 200 with > data from our Doctor Master file. Since I work for > a large university with several hospitals, we have a > few thousand doctors that would need to be entered. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Greg Woodhouse > > Sent: Tuesday, June 21, 2005 4:03 PM > To: hardhats-members@lists.sourceforge.net > Subject: Re: [Hardhats-members] UPDATE^DIE > > There are a few files like 2 and 200 that have so > much logic built into > the DD (try looking at a standard listing) that > doing bulk updates like > this is all but a lost cause. You can try tracking > it down, but most > likely you'll have to build your entries > incrementally, following the > logic in the Registration module, or something > similar. > > (Editorial aside: I don't think things have to be > that way, they just > are.) > > --- "Theriot, Derek" <[EMAIL PROTECTED]> wrote: > > > I am trying to populate the NEW PERSON file by > reading a text file I > > received from an existing application. I have > written a routine that > > will > > read the file and create the FDA array. However > when it gets to the > > UPDATE^DIE call, I get the following message: > > > > > > > > . S [EMAIL PROTECTED]@($TR(P,"+?")) > > > > ^ > > > > <UNDEFINED>ADDCONV+5^DIEF1 > > > > > > > > I am only trying to load a few fields for now > just to try to get it > > working. > > I think I have the required fields covered > (NAME, SERVICE/SECTION). > > Is > > there something I'm missing? Does anyone have a > better suggestion > > for > > accomplishing this? > > > > > > > > Thanks. > > > > > > > > > > > > > > > > "The most profound technologies are those that > disappear." > --Mark Weiser > > ==== > Greg Woodhouse > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux > Migration Strategies > from IBM. Find simple to follow Roadmaps, > straightforward articles, > informative Webcasts and more! Get everything you > need to get up to > speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > Hardhats-members mailing list > Hardhats-members@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members