You are viewing limited content. For full access, please sign in.

Question

Question

9066 exact field problem

asked on March 14, 2016

It does not seem like there is a good way but does anyone know a way to find the exact field of the 9066 "one or more required fields were omitted" error?  It would be great if the error actually showed the field that was the problem.

We frequently have templates with 30+ fields in them.  We also have them in Workflows that require 5-6 forms to be filled out in order to test.  When we get this error we have to go through the tokens one at a time to find the problem field and it would be great to have Laserfiche simply tell you the field it failed on. 

Any chance that is built in or would that be some kind of custom activity?

Thanks,

Chris

0 0

Replies

replied on March 14, 2016

Nevermind, we were able to use an SDK script to dump the info to a text file.  Would be nice as a feature if the error would tell you the field it failed on.

 

Thanks

0 0
replied on March 14, 2016 Show version history

Actually can use a little help with the code.  Tried adding a while loop because we are getting a 

"the process cannot access the file at C:\Users\cayre\Documents\Metadata 516.txt because it is in use by another process.

Here are the first few lines of the code:

           

Protected Overrides Sub Execute()

            dim logpath as String = "C:\Users\cayre\Documents\Metadata " & GetTokenValue("BP Instance ID") & ".txt"

            System.IO.File.Create(logpath)

            while System.IO.File.Exists(logpath) = False

                end While

            dim w as new System.IO.StreamWriter(logpath,True)

            w.WriteLine("Active Service Days - " & GetTokenValue("RetrieveBusinessProcessVariables_Active\vsractiveservicedays"))

            

From there we basically list all the field names and their associated values.  However I cannot get it to create the txt file in the MyDocuments folder.

Update:  I meant to say that it is creating the appropriate txt file in the location but it is empty.  Also the service that workflow is running as is a local admin to the server.  The account also has rights to my Documents folder.

 

Thanks,

Chris

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.