CRM2016 On premises
I have created a plugin to drag in records from a SQL server, however I am getting an unexpected error occurred.
I'm at a total loss as to how to track down what is causing this error.
Does CRM have any workflow logs when looking in the workflow Process sessions there are no records.
Dim NewTransaction As New Entity("new_transactions")
Dim rtn_TransactionValue As Decimal = SQLReader.GetDecimal(TransValue)
NewTransaction("new_transactionsetid") = context.PrimaryEntityId
NewTransaction("new_createdon") = CDate(SQLReader.GetValue(CreatedDate))
NewTransaction("new_createdby") = CreatedByID
NewTransaction("new_sortcode") = SQLReader.GetString(DestSortCode)
NewTransaction("new_accountnumber") = SQLReader.GetString(DestAccountNumber)
NewTransaction("new_daccountname") = SQLReader.GetString(DestAccountName)
NewTransaction("new_reference") = SQLReader.GetString(DestBankRef)
NewTransaction("new_value") = rtn_TransactionValue
NewTransaction.Attributes.Add("new_transactioncode", New OptionSetValue(SQLReader.GetValue(TransCode)))
NewTransaction.Attributes.Add("new_transactiontype", New OptionSetValue(SQLReader.GetValue(TransType)))
NewTransaction("new_rti") = SQLReader.GetString(RTICode)
service.Create(NewTransaction)