Delete resourcegroup: type argument {1} is not a v...
# ask-stanley-ai
n
Delete resourcegroup: type argument {1} is not a valid record or is not available in your account. Please see the documentation for a list of supported record types. getting this message when trying to delete a resource group
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like you're encountering an error when trying to delete a resource group. The error message suggests that the type argument you're providing is not a valid record or is not available in your account. In NetSuite, not all record types can be deleted. For instance, in one of the conversations, a user encountered a
RECORD_CANNOT_BE_CREATED_OR_DELETED
error when trying to delete a script record. This suggests that some record types are not deletable via the APIs. If you're sure that the record type you're trying to delete is deletable, then you might want to double-check the type argument you're providing. Make sure it's a valid record type and that it's available in your account. For example, in a MapReduce script, you can delete a record like this:
Copy code
javascript
var salesOrderRecord = record.delete({type:record.Type.SALES_ORDER,id: 88});
In this example,
record.Type.SALES_ORDER
is the type argument. Make sure you're providing a valid record type in a similar format. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.804273903
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.794650853
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.793955445
Please provide your feedback on this answer.