How to ignore all errors in Acumatica updater - acumatica

I've executed update of Acumatica data base and faced following error messages:
For now I'd like to ignore all errors during update. Is there a way automatically to ignore all error messages during update of Acumatica database?

There is no way to ignore database errors as far as I know, but the error you are seeing seems related to temporary keys.
You could try to optimize the database before upgrading by going to SYSTEM->MANAGEMENT->MANAGE->Companies, selecting your company and clicking on "OPTIMIZE DATABASE".
Another option would be to temporarily disable constraints on the table that triggers the errors but I would test this before trying it on a production environment and you need to enable (rebuild) the index once you are done.
More info here: https://learn.microsoft.com/en-us/sql/relational-databases/indexes/disable-indexes-and-constraints

Related

SSIS package cannot pull from one SharePoint list, all others are okay. Where do I start?

I have SSIS packages that use the oData source to pull from SharePoint lists and libraries. Most of them work. One of them does not. The connection tests fine, but when I go to edit the data source and specify the list I want, trying to retrieve the columns gives me an error that says "An error occurred while retrieving the metadata".
There's one computed field in this list, and when I had the SharePoint Dev remove it in the development environment, the package worked. Is there any way I can configure the oData source to automatically skip this field? I may not be allowed to have it removed in production.
That computed field was already deprecated, and has been removed. It works now.

Azure search indexer failing with error message

My azure search indexer which reads from an sql table with Change Tracking, is failing with the following error
"Unable to cast object of type 'Newtonsoft.Json.Linq.JObject' to type 'System.String'."
If I reset the indexer, it'll start working fine. What is the root cause of the problem here?
We’ve identified an issue in SQL indexers that use SQL integrated change detection that affects a very small number of customers. We’re working on a fix, which will probably be deployed in production next week. We'll also improve our telemetry so that we'll be able to identify this class of issues proactively.
The workaround you’ve already used (resetting the indexer) is the best workaround for this issue.
Sorry for the trouble!

Sql Schema Compare will not update after CLR object installed 'Source schema drift detected'

After installing a custom CLR object Sql Server Developer Tools (SSDT) VS2012 will not allow an update. The error is "Source schema drift detected. Press Compare to refresh. After refresh same thing happens.
Tried
In settings, I set the object to just Stored Procedures.
Settings ->General -> Block on possible data loss -> tried both on and off.
This sort of loop can also be caused by a referenced SSDT project failing to build. The referenced project may be missing, unloaded, or have an error which prevents the compare from completing.
This is not an answer but a clue to deal with this problem.
I was to update a colum from varchar[200] to varchar[MAX] and got this problem as well. So I logged in the server and tried to update the database manually via SQL Management Studio which was installed there, and I got this error:
"Saving changes is not permitted. The changes you have made require the folloing tables to be drpped and re-created. You have either made changes to a table that can't be re-created or enable the option Prevent saving changes that require the table to be re-created."
Seems that re-creating table is something so dangerous that "block/unblock on possible data lose" cannot handle. So I think only if we can walk around this LOCAL warning, could we update the database REMOTELY.
But, why [200] to [max] leads to re-creating table? It does not make any sense. I tried [200] to [1000], and it did not work as well. This might be the key to this problem.
And, if you do the same update in Server explorer in VS, instead of SQL Management Studio, it works. Again, why?
This can happen when a db user "changes".
The following rather scary forum page recounts issues where foreign hackers were trying to brute-force access to the "sa" db user, with each attempt changing the sa-user's date timestamp (which is seen as a schema drift):
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/5c22a7b4-7a82-4717-a118-2475bc62705b/schema-compareupdate-error-target-schema-drift-detected?forum=ssdt
Here is also mentioned that you can query the sa-user a few times, to see if this is happening to you:
SELECT * FROM sys.server_principals WHERE principal_id=1
I am currently experiencing the same issue (that the sa-user is being modified; I know nothing about hackers yet) and am yet to find a solution.
Edit - I turned on logging in Windows Firewall via properties > logging, and we setup a blocking rule on port 3071, which had a lot of unexplained traffic. Then the problem went away.
I tried running VS as an administrator, it worked.

Error in deploying sandbox to production in salesforce

I am deploying my project from sandbox to production. And i am using "ANT" tool for deploying. But it is giving me error as given below:
Error: objects/Form__c.object(144,13):field integrity exception:
unknown (must specify either cascade delete or restrict delete for
required lookup foreign key)
Can anybody help me please.
Thanks,
Goto line no 144 of your object Form__c there will be a Lookup Field , in that field remove the 'Required' Tag , remove that tag completed and start your ant deploying again.
Sounds like an API version mismatch thing. If I recall correctly ability to reparent master-detail relationships and to mark lookups as required on DB level instead of layout level was introduced in summer'12. Your XML file is coming from sandbox without this feature so SF is complaining at the missing tags.
See release notes (pages 183-184), though they don't really mention the metadata changes...

Writing the Windows Event Log using Visual Studio C++ 6

I am attempting to write a simple function using VC++6 to write to the event log. It must be in this version of studio because it is being added to a legacy application. The problem that I am having is that it writes the message similar to below. The only thing that is valid here is the "This is a test" string. I don't need this to be very complicated. I just need to be able to write to the event log for a specific application. Any thoughts? I have seen a few articles but they appear to be a lot more than I need.
The description for Event ID 3 from source Application cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
This is a test
the message resource is present but the message is not found in the string/message table
It's been a very long time, but I seem to remember that you might need to create a *Message Resource Dll" to fix this. Or at least have some message resources somewhere.
This article seems like it might be able to help (and it support VC6): Using MC.exe, message resources and the NT event log in your own projects

Resources