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

Question

Question

Multistatus response. [9039] bad field values on text fields of laserfiche version 10.4.3

asked on May 7, 2021 Show version history

I am having problem with LF Server 10.4.3 to save multilevel values in document using SDK programming.

For LF server 10.4 everything works fine but same code not works for 10.4.3 enviorment.

Please find attachment with Template , source code and also error screenshot. I am using 10.4 version DLL for Laserfiche.RespositoryAccess and Document service.

 

Here i am also attaching source code which implemented by me.

 

 

 

 

 

 

error.png
template 10.4.0.png
template.png
error.png (24.68 KB)
template.png (10.37 KB)
Source code.txt (13.38 KB)
0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on May 10, 2021

Hi Bratik,
In LFS 10.4.3, if you would like to set field values on multi-field value that in a same group, you need to call fieldValues.SetFieldRowNumbers on the multi-value field:
for example:
fieldValues.AppendValues("Product_Type", valueProductType);

fieldValues.SetFieldRowNumbers("Product_Type", Enumerable.Range(1, productDetails.Count).ToList());
fieldValues.AppendValues("Product_Name", valuesProductName);

fieldValues.SetFieldRowNumbers("Product_Name", Enumerable.Range(1, productDetails.Count).ToList());

2 0
replied on May 11, 2021

Thanks Jason,

Its works like a charm !

 

Regards,
Pratik Barot 

0 0

Replies

replied on May 10, 2021

Some ideas:

- Try calling newDoc.Refresh(false) after creating the DocumentInfo, but before calling SetTemplate. This will ensure newDoc is initialized.

- inspect the results of GetFieldValues(), it should contain more information about what went wrong.

- Double check that the field value arrays you are passing in contain valid data (no null strings, no trailing spaces, no strings longer than the field's max length, text matches the field constraint if the field has a constraint configured).

0 0
replied on May 10, 2021

I have added same things but still no luck :(

 

0 0
replied on May 10, 2021

See attached screens for error details

error screeen.png
0 0
replied on May 10, 2021

What is in the BadFieldValues object?

0 0
replied on May 10, 2021

Hello Robert,

Please see details of badfieldvalues object. on 10.4.0 LF server everything working fine.

But with 10.4.3 same code did not work.

 

Thanks,

Pratik Barot

 

Bad fields Debuger.png
0 0
replied on May 10, 2021

Hello Robert,

I am using attached source code  along with dll version 10.4.2.103 ( both laserfiche.repositoryaccess and documentservice )

facing problem since last 7 days. Only problem with multilevel fields in template.

Thanks,
Pratik Barot

DLL version.png
code sample.txt (16.03 KB)
DLL version.png (91.39 KB)
0 0
replied on September 10, 2024

I have a similar issue and I follow what Jason Zhang suggested to 

 to call fieldValues.SetFieldRowNumbers on the multi-value field:
for example:
fieldValues.AppendValues("Product_Type", valueProductType);

fieldValues.SetFieldRowNumbers("Product_Type", Enumerable.Range(1, productDetails.Count).ToList());
fieldValues.AppendValues("Product_Qty", valuesProductQty);

fieldValues.SetFieldRowNumbers("Product_Qty", Enumerable.Range(1, productDetails.Count).ToList());


In my case, I want to add 2 field values within a group where 1 is a string and another one is an integer.
When I call SetFieldRowNumbers I also check the 2nd parameter for the array of row number have the matching size.
However, when I executed my code I had

Exception:Multistatus response. [9039]

The parameter is out of range or too long. [9020]
Another operation on which this operation depends failed. [9054]    

Any idea what can be the cause of it?

 

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

Sign in to reply to this post.