Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Index 1 of Array 'Show Hide Attachments' is out of range in script 'Display Line Item'. Script Terminated.

(1) ShareShare
ReportReport
Posted on by

Hey all,

I have been facing this issue in Dynamics GP 2016 R2 (v16.00.0579), while opening a Line Item from the Purchase Order Entry window. Please find the screenshot attached.
"Index 1 of Array 'Show Hide Attachments' is out of range in script 'Display Line Item'. Script Terminated."

PO-Item-error.PNG

From what I understand, there seems to be a duplicate or incorrect field for "Show Hide Attachments" for the Line Item ("DisplayLineItem") that's causing this error. But I can't seem to find any trace or location of this "Show Hide Attachments" if it's a field.

I am not sure if the Document Attachment Setup (Tools > Setup > Company > Document Attachment Setup) has anything to do with this. By default, Attachments were disabled. I even tried allowing attachments in it, but the error message still persists.


I also tracked my GP Tables execution through SQL Tracing for the part where I open my Purchasing Item Detail Entry window, and it passes through the following tables, just before it throws the error message:

GL00100, IV00101, SOP60100, SY03900

Any suggestions or solutions provided will be greatly appreciated, as I've been trying to solve this issue since the past few days.

Thanks!

Regards,
- veggiedude

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans