Cabinetman Posted September 18, 2008 Posted September 18, 2008 I guess I just can't see it.........but there's a oops somewhere in here. I'm getting a "yes" in every record sometimes showing as updated=yes even though the import file was empty. some lines are abbreviated...... Import Records [ Source: “file:update.txt”....Method: Update matching] Set Field [ table::gErrorCode; Get (LastError) ] If [ Get(FoundCount) = 0 ] Show Custom Dialog [ Title: .....] Set Field [ table::number of import errors; 1 + table::number of import errors ] Show All Records Go to Layout [ “whatever” (layout) ] Exit Script [ ] Else If [ table::ErrorCode = 409 ] Show Custom Dialog [ Title: ......... ] Set Field [ table::.....] Show All Records Go to Layout [ “whatever” (layout) ] Exit Script [ ] Else Replace Field Contents [ table::updated; Replace...tion: "Yes" ] Set Field [ table::records updated; Get(FoundCount) ] End If
Fitch Posted September 18, 2008 Posted September 18, 2008 It would appear that the found count after import is not zero, and the last error was not 409, so it's proceeding to the Replace step. Do you have FM Advanced so you can step through with the script debugger?
Cabinetman Posted September 18, 2008 Author Posted September 18, 2008 Yes and ran it.... no errors this time and not sure what caused it as there's more to the script and several fields are modified. I have set it to 'pause on error' hoping to catch the problem..........
Recommended Posts
This topic is 5911 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now