QuickBooks SDK "ticket parameter is invalid" error - exception

We have an order import app that has been in production for 3 months. 2 weeks ago we started getting intermittent "invalid ticket parameter" exceptions. What does this mean and how can we fix it?
We get it on various requests: customer and item queries, sales order inserts, etc. Most of the time these calls work fine but every so often one of them will kick out an exception. Here's an example from our log:
2014/03/20 13:11:28.222 - Error in QB.ExecuteRequests(IMsgSetRequest): Exception: The ticket parameter is invalid.
2014/03/20 13:11:28.222 - Error in QB.ExecuteRequests(IMsgSetRequest): RequestXML:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="12.0"?>
<QBXML>
<QBXMLMsgsRq onError = "continueOnError">
<ItemQueryRq requestID = "0">
<NameFilter>
<MatchCriterion>Contains</MatchCriterion>
<Name>01507</Name>
</NameFilter>
<OwnerID>0</OwnerID>
</ItemQueryRq>
</QBXMLMsgsRq>
</QBXML>
Any ideas? QBSDK v12 with QBES 2013.

Enable verbose logging and see if the logs tell you anything. https://intuitpartnerplatform.lc.intuit.com/questions/177198-troubleshooting-sdk-issues

Related

SSRS 2017 Subscription Won't Open

I'm running SSRS on an OS 2016 standard and SQL Server 2017 and PowerBI. We're having problems, but I'll address one issue at a time.
I cannot open subscription services. I've successfully done this without problems in SQL Server 2012, but not the new box. I'm an administrator on the box and have every capability available for security - my role on the SSRS site is Admin. The error reads:
An error has occurred. Something went wrong. Please try again later
Here's the log file - but I can't find a 200 reference anywhere?
RSPortal!reportserverwebapp!RSPortal.exe!c!05/14/2018-10:57:27:: i
INFO: Sending response. Response code MAHEC\Janetb 500, Elapsed time
0:00:00.0107581 | RequestID = s_10ee693e-a340-45d7-a021-6a30961fef3c
RSPortal!reportserverwebapp!RSPortal.exe!3!05/14/2018-10:57:27:: i
INFO: Received request GET /api/v2.0/me | RequestID =
s_77bbe02a-f5f4-4767-b1a3-7da5c58dba72
RSPortal!reportserverwebapp!RSPortal.exe!d!05/14/2018-10:57:27:: i
INFO: Received request GET /api/v2.0/schedules | RequestID =
s_8a7661ed-20ff-4585-8313-1c5df05dd236
RSPortal!reportserverwebapp!RSPortal.exe!c!05/14/2018-10:57:27:: i
INFO: Sending response. Response code MAHEC\Janetb 200, Elapsed time
0:00:00.0093358 | RequestID = s_8a7661ed-20ff-4585-8313-1c5df05dd236
RSPortal!reportserverwebapp!RSPortal.exe!c!05/14/2018-10:57:27:: i
INFO: Sending response. Response code MAHEC\Janetb 200, Elapsed time
0:00:00.0448676 | RequestID = s_77bbe02a-f5f4-4767-b1a3-7da5c58dba72
RSPortal!reportserverwebapp!RSPortal.exe!3!05/14/2018-10:57:27:: i
INFO: Received request POST /api/v2.0/schedules/model.describe |
RequestID = s_01998a7b-43fb-4825-8ba6-e90a911b39b7
RSPortal!reportserverwebapp!RSPortal.exe!c!05/14/2018-10:57:28:: i
INFO: Sending response. Response code MAHEC\Janetb 200, Elapsed time
0:00:00.1642061 | RequestID = s_01998a7b-43fb-4825-8ba6-e90a911b39b7
Any help appreciated.
Thanks
After days and days of searching found this that worked:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/6e831bc2-377e-47e6-a3bd-d601aa34438b/ssrs-subscription-settings-and-error-logs?forum=sqlreportingservices
I was getting this message when trying to view subscriptions for an SSRS report.
For me, the issue was that somehow the subscription parameters became invalid. This may or may not have been because we did a SQL Server upgrade. After the upgrade I noticed that the requirements for creating a subscription are very stringent about how the date is typed in for date values.
The solution for me was to run a script like this on the report server DB.
update s set s.parameters = '<ParameterValues />'
FROM ReportServer.dbo.Subscriptions s
INNER JOIN ReportServer.dbo.Catalog c
ON s.Report_OID = c.ItemID
AND s.Description = 'Some name'
my issue was a bit more silly, but I thought I would share anyways. My datasource was pointing to an outdated database. I'm not sure why the error couldnt have just told me the datasource was having problems, but either way, updating it fixed the issue for me.

EWS SyncFolderItems is giving me exception "An internal server error occurred. The operation failed."

I have a Synchronisation tool which uses EWS Managed API 'SyncFolderItems' to retrieve changed items in a Calendar folder. It has been running fine for 18 months or so but this week two customers both experienced the same issue. (Could be a coincidence). Both are Office 365 customers.
The sync started failing to complete, and on closer analysis, the SyncFolderItems call was failing with error "An internal server error occurred. The operation failed." No further details given in the error.
I reset the sync (ie set the syncstate back to null so it sync everything in the folder again) . It worked fine for several pagination iterations getting 250 items at a time, but them at some point it failed.
I thought maybe there was an item with alot of data. I reduced the page size to 25 and it worked OK for a bit, then failed. I reduced it a page size of 1 and it fails. There are 1250 items in the folder, so I haven't worked out which item it is failing at yet. It seems inconsistent and I wonder if there is a throttle which has been set higher recently?
I think my next step is to see if there is one offending item and delete it, but its hard work out which item it might be.
Does anyone have any suggestions for what might be going wrong?
icc = service.SyncFolderItems(Connection.SourceID, ps, null, 1,
SyncFolderItemsScope.NormalItems, syncstate);
I having the same issue with SyncFolderItems(..).
The problem seems to exist only in public folders? I tested with a public calender folder. If I call SyncFolderItems for the first time with no status, I get no error. But if I have a status and delete one item in the public folder, I get this error on the next call of SyncFolderItems().
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2016, TimeZoneInfo.Local);
service.Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx");
service.Credentials = new WebCredentials("x.y#germany.de", "pwd");
Folder f1 = Folder.Bind(service, new FolderId("SOMEFOLDERID OF A PUBLIC CALENDAR FOLDER"), BasePropertySet.FirstClassProperties);
Console.WriteLine(f1.DisplayName);
String status = "";
do
{
ChangeCollection<ItemChange> changes = service.SyncFolderItems(f1.Id, BasePropertySet.IdOnly, null, 100, SyncFolderItemsScope.NormalItems, status);
Console.Write(changes.Count+",");
status = changes.SyncState;
} while (true);
ServerInfo: {15.01.1101.019} V2017_04_14

SSRS subscription throwing Invalid State error when saving

I have migrated to a new report server. When trying to create new subscriptions through the URL I am getting the following error:
Operation is not valid due to the current state of the object.
I found that a certain windows KB can cause this issue (KB2656356 and KB2656351) However I have found that adding a key to the web.config file might also do the trick.
<https://social.msdn.microsoft.com/Forums/sqlserver/en-US/cb6ede72-6ed1- 4379-9d3c-847c11b75b32/report-manager-operation-cannot-run-due-to-current-state- of-the-object?forum=sqlreportingservices/>
But after adding this key and bouncing the services, no change. I still get the error. Has anyone experienced this?
ui!ReportManager_0-1!5144!03/21/2017-10:23:17:: e ERROR: System.InvalidOperationException: Operation is not valid due to the current state of the object.
at System.Web.HttpRequest.FillInFormCollection()
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
library!ReportServer_0-2!5e0!03/21/2017-10:23:18:: i INFO: Call to GetSystemPermissionsAction().
ui!ReportManager_0-1!5144!03/21/2017-10:23:18:: e ERROR: HTTP status code --> 500
-------Details--------
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at System.Web.HttpRequest.FillInFormCollection()
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
library!ReportServer_0-2!5e0!03/21/2017-10:23:18:: i INFO: Call to GetSystemPropertiesAction().
ui!ReportManager_0-1!5144!03/21/2017-10:23:18:: e ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
The SSRS version is 11.0.3000.0. It is a native install. I am creating the subscription through the report server URL "businessreport/reports";. It seems directly related to the amount of available parameters. In my case if I pair down the amount of items including the report, then I don't have an issue. Obviously i can edit the report to fix this, but I inherited a very large amount of reports. I'd rather be able to pass as many as necessary. Hopefully that helps
Also I have tried editing the web.config file in both of the following directories:
I:\MSRS11.SQLPROD\Reporting Services\ReportManager
and
I:\MSRS11.SQLPROD\Reporting Services\ReportServer
I included the following: This did not make a difference at all.

object required error

Can anyone tell me the reason for this error message in report manager? My report works fine in tool. My second parameter is cascaded (derived from) to the first parameter.
When I run the report for first time it works, but when immediately change any other parameter and try to execute it gives me no data in the result and the web page shows this error:
Line: 13
Char: 692
Error: Object Required
Code: 0
Why do I receive this error?
Sounds like Javascripts version of a NullReferenceException. If that is the case, there are a billion different reasons why this could happen.

Linq 2 SQL on shared host

I recently ran into an issue with linq on a shared host.
The host is Shared Intellect and they support v3.5 of the framework. However, I am uncertain to whether they have SP1 installed. My suspicion is that they do not.
I have a simple News table that has the following structure:
NewsID uniqueidentifier
Title nvarchar(250)
Introduction nvarchar(1000)
Article ntext
DateEntered datetime (default getdate())
IsPublic bit (default true)
My goal is to display the 3 most recent records from this table. I initially went the D&D method (I know, I know) and created a linq data-source and was unable to find a way to limit the results the way I desired, so I removed that and wrote the following:
var dc = new NewsDataContext();
var news = from a in dc.News
where a.IsPublic == true
orderby a.DateEntered descending
select new { a.NewsID, a.Introduction };
lstNews.DataSource = news.Take(3);
lstNews.DataBind();
This worked perfectly on my local machine.
However, when I uploaded everything to the shared host, I recieved the following error:
.Read_<>f__AnonymousType0`2
(System.Data.Linq.SqlClient.Implementation.ObjectMaterializer`1<System.Data.SqlClient.SqlDataReader>)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MethodAccessException:
.Read_<>f__AnonymousType0`2
(System.Data.Linq.SqlClient.Implementation.ObjectMaterializer`1<System.Data.SqlClient.SqlDataReader>)
I tried to search the error on Google, but met with no success. I then tried to modify my query in every way I could imagine, removing various combinations of the where/orderby parameters as well as limiting my query to a single column and even removing the Take command.
My Question therefore comes in 3 parts:
Has anyone else encountered this and if so, is there a "quick" fix?
Is there a way to use the datasource to limit the rows?
Is there some way to determine what version of the framework the shared host is running short of emailing them directly (which I have done and am awaiting an answer)
System.MethodAccessException is thrown by the framework when it is missing an assembly, or one of the references are of the wrong version.
The first thing I would do is try uploading and referencing your code to the LINQ assemblies in your BIN, instead of the shared hosting providers GAC.