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

Question

Question

workflow insert data throwing error minimum width cannot be smaller than 2

asked on March 15, 2016 Show version history

I have 2 activities in my workflow retreive laserfiche forms content and then insert data. However when i configure set values insert data activity thorws this below error. Please can someone help me on this

0 0

Answer

APPROVED ANSWER
replied on September 15, 2016 Show version history

Chris, you're right, we only had a few reports with no reproducible steps. Coincidentally, we got a report with a few more clues yesterday. We've tracked it down to the case where the Data to Insert panel has a horizontal scrollbar. The scrollbar appears when the "Column" column is wide, while the "Value" column just truncates its data to fit the visible screen. Based on that, you should not have to make the properties pane super wide, just wide enough to accommodate the width of the "Column" column.

We're looking into fixing it for Workflow 11.

 

1 0

Replies

replied on March 15, 2016

What exactly were you doing when you got the error?

0 0
replied on March 15, 2016

I am setting values for Date To insert and when I click 'OK' in the Data to insert window it throws this error. 

This is what I see in the error log

Minimum width provided cannot be smaller than 2.
Parameter name: MinimumWidth
Actual value was 1.

Exception
        System.ArgumentOutOfRangeException:
Minimum width provided cannot be smaller than 2.
Parameter name: MinimumWidth
Actual value was 1.

Stack Trace
        at System.Windows.Forms.DataGridViewBand.set_MinimumThickness(Int32 value)
        at Laserfiche.Workflow.Activities.Data.InsertDataEditControl.UpdateValueColumnWidth()
        at Laserfiche.Workflow.Activities.Data.InsertDataEditControl.EditItem()

Data items: 1
AlreadyLogged: True
 

0 0
replied on March 15, 2016

Can you give a screenshot of the insert data activity configuration just before you get this error message?

0 0
replied on March 15, 2016

Hi,

This is the workflow and insert data activity. Then i click on 'Set Values' and select value for Date . click OK

 

 

 

 

0 0
replied on April 17, 2016

Hi,

Any feedback on this error, I am also getting a similar error when trying to insert data into a database using the insert data activity.

Minimum width provided cannot be smaller than 2.
Parameter name: MinimumWidth
Actual value was -14.

The diagnostics data is as below:

Minimum width provided cannot be smaller than 2.
Parameter name: MinimumWidth
Actual value was -14.
---Stack Trace---

   at System.Windows.Forms.DataGridViewBand.set_MinimumThickness(Int32 value)
   at Laserfiche.Workflow.Activities.Data.InsertDataEditControl.UpdateValueColumnWidth()
   at Laserfiche.Workflow.Activities.Data.InsertDataEditControl.EditItem()

***

 Regards,

Mark

 

0 0
replied on April 18, 2016

I created a new workflow from scratch and it worked. Don't know what the actual reason was

0 0
replied on September 14, 2016 Show version history

I'm getting this same error today. The workflow was working fine, but I changed something in the database. After I clicked the refresh option for the table under data to insert in the insert data workflow activity I started getting this error. Closing out of workflow designer completely and coming back in still gives the same error.

The version of workflow is 10.0.0.249

I exited out of the workflow designer without saving and went back in it, same issue.

I exited out of workflow designer, deleted that one control and added a new control back in, same issue.

I exited out of workflow designer, stopped/started workflow and the sql server, repeated the steps above - same error. 

 

It ended up being fixed after rebooting, but I had to delete the insert and recreate it again. This had over 40 fields s it wasn't simple. 

 

***edit - after putting in all of the fields in a new control, I kept working. I realized I needed to change one of the write fields and edited the existing code and started getting the error again. 

 

The error diagnostics are here:

Minimum width provided cannot be smaller than 2.
Parameter name: MinimumWidth
Actual value was -22.
---Stack Trace---

   at System.Windows.Forms.DataGridViewBand.set_MinimumThickness(Int32 value)
   at Laserfiche.Workflow.Activities.Data.InsertDataEditControl.UpdateValueColumnWidth()
   at Laserfiche.Workflow.Activities.Data.InsertDataEditControl.EditItem()

***

 

The error appears to be happening with the redrawing of the "data to insert column/value" table on the right side of the window. Once the error happens it's all grayed out, even though when clicking the "set Values" button underneath it the data to insert window pops up with all the fields still filled in. 

 

0 0
replied on September 14, 2016

I created a new reply for a workaround for this issue!

I stumbled upon what's happening here. The issue is definitely an issue with the .Net controls on workflow designer itself. Because of this error it will not allow you to save changes to the insert control, and won't let you do anything with a new control until you exit out of workflow designer all the way and come back in. 

The issue appears to be an issue where some of your values go off the screen. The intial write of that preview screen inside the activity works, but when it tries to update the changes you made it fails. 

However

If you make the properties window reeeeaaaallly large so that no value would ever continue off screen it works and allows you to make changes!  

 

When it's properties column is abnormally wide it will save fine. If I shrink this back up it'll fail. I opened a case for this so I'll give Laserfiche the details on the  "Loaded Assemblies" screen under help. I'm guessing since it's been months with only a few reports this is something that's specific to certain .net control versions loaded on this machine. 

0 0
APPROVED ANSWER
replied on September 15, 2016 Show version history

Chris, you're right, we only had a few reports with no reproducible steps. Coincidentally, we got a report with a few more clues yesterday. We've tracked it down to the case where the Data to Insert panel has a horizontal scrollbar. The scrollbar appears when the "Column" column is wide, while the "Value" column just truncates its data to fit the visible screen. Based on that, you should not have to make the properties pane super wide, just wide enough to accommodate the width of the "Column" column.

We're looking into fixing it for Workflow 11.

 

1 0
replied on September 15, 2016 Show version history

Well, I did create the table I'm writing to by exporting a variable list from a workflow retrieve business process task, and invariably there's always at least one field on long forms you forget to set a variable name for immediately and it ends up with a ridiculously long variable name because that's what the label for that control was. wink

So I do have a column name that is around 25 char long! That makes sense why it worked when initially creating but not editing, since that column isn't there until it's created. 

You should mark your response as the answer so that people searching this error know the workaround!!!

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

Sign in to reply to this post.