The record you are attempting to load has a different type: noninventoryitem from the type specified: serviceitem - netsuite

I'm saving the vendor bill in NetSuite. and System give this error("The record you are attempting to load has a different type: noninventoryitem from the type specified: serviceitem.").
Can someone explain the what is the issue here and how I can fix this issue?
I have try to save many time but sysytem give same error and Im not able to save the bill from edit mode.

This could be due to customised scripts or workflows that apply to vendor bill which are for service item type only.
You can try goto Customisation > Scripted Record and then click view on Vendor Bill and see the list of scripts and workflows apply to bill.
Then try to disable one by one to find which one is causing the problem. Once you found the script/workflow that create the error, try to add a filter in the script/workflow to limit it to service item item type only.

Related

Internal Ids generated on Netsuite custom records not sequential

I have created two custom record types in Netsuite, for one of the record types when I am inserting new records via script I am seeing the internal ids are 1, 101, 201, 301 etc instead of 1,2,3,4.
While on the other custom record its as expected. Is it something wrong on the custom record creation or am I missing something?
No. Internal ID's can be created differently when done in batches, deleted, or because it's a day that ends in "y". It's standard behavior. Rest easy.
On the Custom Record itself check the "Numbering" tab. Reference Suite Answer Id: 10146. Check the Enable box to turn on automatic numbering. Check the Allow Override box if you want to be able to enter a custom number. Check the Update box to number record instances that have already been created.

CRM - how to add the case number to appointments

On CRM in the appointments you can click on the regarding tab to open up that appointments Case details.
Is it possible to add the CASE number for that appointment to the appointments page. Reason being every time I want to see the case number I need to click on regarding tab and open up another webpage.
Would be nice to just have the case number appear on the appointment page, anyway on the page is fine.
Is this possible?
thanks
I agree with Alex and Disagree with Darren, although a plugin would get the job done it seems very excessive for what you are trying to accomplish.
The best way to do this between entities is to use the mapping fields between entity relationships however i don't believe CRM allows this between case and appointment in which case i would create a workflow.
Create a workflow on appointment firing on create or on-change of the regarding field, pull the case number field from the case entity when regarding is on case. This workflow will fire every time this event happens however you can build some extra logic around it and if there isn't a case entity no data will be pulled through.
Hope this helps
You can write a plugin on create and/or update of the regarding field on Appointment. Within this plugin you can check if the regarding field is populated and if so if the entity type is incident. If it is, obtain the Case Number (using the OrganizationService) and set the value of a custom attribute on the triggering Appointment.
Add the custom attribute to the Appointment form. Generally this kind of reference information goes in the header section but it's entirely up to you. If you don't place it there make sure you mark it as read-only.
Depending on your use case you may also want to check in the plugin when the regarding field changes. If the regarding is removed or changed you'll need to make sure you update the case number on the Appointment to reflect this.

Unable to find a matching line for sublist apply with key:

We are seeing failure to Netsuite while updating payments via the netsuite API,
the error message we see is as below Unable to find a matching line for sublist apply with key: [doc,line] and value: [123344,null] where 123344 is the external id of the bill.
Any ideas what might be the cause of this?
Note that SuiteTalk will give you this cryptic little message when you try to create a payment for an invoice that already has an Invoice:Paid In Full transaction status.
Don't get me wrong—it's good that NetSuite has this sanity check. I just wish the error was more helpful.
"Unable to find a matching line for sublist apply with key: [doc,line] and value: [123344,null]"
There is your problem, you can't match a line if you are not passing the line number.
We had the same problem inserting new payments, but it worked using the Internal ID for the Invoice column.
Note that the mapping specification is not clear on how to identify the Invoice when adding/updating payments for it. The API requires an invoice, and it works when you provide the Internal ID for the invoice.
I get this error when creating a customer payment. Below is my code. Make sure invoiceId is invoice's internal id and amount is less than or equal to invoice amount.
CustomerPaymentApply paymentApply = new CustomerPaymentApply();
paymentApply.setAmount(amount);
paymentApply.setApply(true);
paymentApply.setDoc(Long.valueOf(invoiceId));
We were getting this error with the Chargebee-Netsuite integration. The solution was to open the corresponding Accounting Period in Netsuite and rerun the sync.
The first number [123344,null] is the Netsuite internal ID of the affected document. If you navigate to the document in Netsuite and it has a padlock this could be the reason:
Open the Accounting Period for the affected document and rerun the sync. Setup/accounting/manage accounting periods:

CRM 2011 Filtering view on related record type

I want to create a new view for the activities entity. My aim was to show only the activities that were related to a record of a certain type eg account. But when i was creating it i saw that aside from saying if it contains data or not, and for specific records, there isnt an option for entity type.
I can understand why this isnt an option in the list, as its not really something people would need to do, but is this possible at all?
Thanks
Create an Advanced Find and specify the following criteria:
Look for: Activities
Related > Regarding (Account)
This will get you all activities which are related to an account.

Unable to create a content type - A duplicate content type was found

I'm having this problem and I didnt find any answers on the web.
I have a content type named "Document X" with the original "Document" as parent. (ID is 0x010100ACEA2663B318874AA9192CA9AF678614)
I already have a content type named "Document X 1" with "Document X" as parent. (ID is 0x010100ACEA2663B318874AA9192CA9AF67861401)
When I create a new content type named "Document X 2" with the parent "Document X", I get the error "A duplicate content type 'Document X 2' was found"...
I checked the ULS and the error isn't reported there. I can create new content type from any other content type (out of the box or others I created like "Calendar X") but I cant create new one from that "Document X". (And no I dont have any content type named like that.. whatever name I use, I get the same error)
Full error is:
A duplicate content type "Document X" was found.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: b9d36bb8-1a8e-4ef4-bbd0-fbdf8e70d73b
Date and Time: 1/24/2011 3:00:36 PM
This error is happening on my content type hub site but I use and create content type on this site only. I dont create them using Visual studio, its in a production environnement and we have to create them with the Site Settings or Designer but both give me the same error.
I know I dont have much info to give here, I just dont know where to look first..
If anyone have any idea that could help me, I would really appreciate it as I lost a few hours on this already and dont know where to look anymore...
Thanks a lot!
I found my problem, so if this can help some people some day.
Looks like SharePoint have some problems sometimes to update a field in the content database.
The field NextChildByte from the dbo.ContentTypes table is the problem.
Lets say I create a content type with ID 0x010100ACEA2663B318874AA9192CA9AF678614 with Document as parent (0x0101)
SharePoint will create an entry in the dbo.ContentTypes table.
When I create an other content type with the first one as parent.. The ID of this new content type will be 0x010100ACEA2663B318874AA9192CA9AF678614*01*) This 01 came from the NextChildByte field from the dbo.ContentTypes table.
Now SharePoint should update the dbo.ContentTypes table and set the field NextChildByte to 2 so the next content type created using the same parent will be 0x010100ACEA2663B318874AA9192CA9AF678614*02*
My problem was.. SharePoint didnt update the NextChildByte field so SharePoint was trying to create a content type with ID 0x010100ACEA2663B318874AA9192CA9AF678614*01* when it already existed...
In my case.. I finally have been able to delete the content type 0x010100ACEA2663B318874AA9192CA9AF678614*01*. When I recreated it, SharePoint did update the NextChildByte to 2 so I was able to create a more child content type after that.
EDIT: I found afterwards this blog post. Looks like this script could have fix it for me. This would be the best option since updating the database is not a solution.
http://www.mattjimison.com/blog/2011/06/21/a-duplicate-content-type-found-error/
Cheers!
After struggling with this issue for a good while (the fixes mentioned here didn't work for me), I have managed to find an alternative way to fix it.
In my case this error was happening when trying to use a Site Template (classic templates).
Before saving the site as a template, I opened the site using SharePoint Designer, navigated to All files -> _cts folder and deleted the content types from the site level. In my case there was already a content type with the same name in the Site collection level.

Resources