Opened 18 months ago

Closed 17 months ago

Last modified 17 months ago

#3095 closed defect (fixed)

Web Errors when clicking on collectors or donors on particular cooperators

Reported by: Mark J. Millard Owned by: dbmulg
Priority: medium Milestone:
Component: Public Website App. Version: N/A
Severity: Keywords:
Cc: Database Engine: N/A
Operating System: N/A

Description

The cooperators in the passport tabl on the public interface are giving public web errors. Not all cooperators are a problem. The coops on the passport page for these accessions are a problem:

​https://npgsweb.ars-grin.gov/gringlobal/accessiondetail?accid=PI+441933
​https://npgsweb.ars-grin.gov/gringlobal/accessiondetail?accid=Ames+21833

This one is OK:
​https://npgsweb.ars-grin.gov/gringlobal/accessiondetail?accid=Ames+26693

Benjamin says the error log says this:

Exception information:

Exception type: ArgumentException
Exception message: Cannot set Column 'Name' property MaxLength to '100'. There is at least one string in the table longer than the new limit.

at System.Data.DataColumn.set_MaxLength(Int32 value)
at GrinGlobal.Business.SecureData.FinishProcessing(DataSet ds, Int32 languageID)
at GrinGlobal.Business.SecureData.getData(Dictionary`2 dic, String dataviewNameOrSql, Int32 offset, Int32 limit, StreamWriter streamWriter, String streamFormat, Boolean prettyColumns, DataSet dsReturn, ReadOptions getOptions)
at GrinGlobal.Business.SecureData.GetData(String dataviewNameOrSql, Dictionary`2 dic, Int32 offset, Int32 limit, String options)
at GrinGlobal.Web.Utils.ReturnResults(String dataview, String ids)
at GrinGlobal.Web.Cooperator.bindData(Int32 coopID)
at GrinGlobal.Web.Cooperator.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Kurt says:This is caused by a quirk or how the Admin Tool set max field length in dataviews by matching to database fields. I've tested a fix on npgsdev. Would someone like to create a Trac ticket so this can be put on production?

Change History (6)

comment:1 by Mark J. Millard, 18 months ago

Component: Other → Public Website App.
Owner: set to dbmulg

comment:2 by Kurt Endress, 18 months ago

Status: new → addressed

Loaded loaded modified dataview web_cooperator_accessionsource_2_20250610 on npgsweb after testing on npgsdev. This avoids a name collision on column "Name" by removing an unnecessary join to the taxonomy_species table.

comment:3 by Kurt Endress, 18 months ago

Type: enhancement → defect

comment:4 by Mark J. Millard, 18 months ago

Worked on NPGSWeb with the example given. Any hints on what type of donor/developer/collector might trip it up?

comment:5 by Benjamin Haag, 17 months ago

Closed; he resolved the problem on the DV end.

Last edited 17 months ago by Benjamin Haag (previous) (diff)

comment:6 by Benjamin Haag, 17 months ago

Resolution: → fixed
Status: addressed → closed
Note: See TracTickets for help on using tickets.