Quantcast
Channel: Daniel Cai's Activities
Viewing all 397 articles
Browse latest View live

Trying to Retrieve CRM Data via an SSIS Script Component using CRM Connection Manager

$
0
0

I have a transformation script component within a data flow task - using KingswaySoft. 

However, I get the error "Object reference not set to an instance of an object" when the script task executes.

I pass an SSIS variable into the component called "ContactGUID". The component also has 1 input, "CRMRecordId", which is the GUID of the custom entity I want to retrieve the x_contact value from. The component has a CRMConnection manager and one output column added.

My first question is there anyway to debug Script Components? I have tried setting a message box/break points - but the object error appears as soon as the script component is reached within the data flow.

Here is my code:

#region Namespaces
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
using Microsoft.SqlServer.Dts.Runtime.Wrapper;

using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
using KingswaySoft.IntegrationToolkit.DynamicsCrm;
using KingswaySoft.DynamicsCrmServices.Soap2011;
using KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.Query;
using KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService;
using KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.Messages;
using KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.Metadata;
         
using System.ServiceModel.Description;
using Microsoft.SqlServer.Dts.Pipeline;
using System.Runtime.Serialization;
#endregion

[Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
public class ScriptMain : UserComponent
{
  
    public IOrganizationService _service;
    KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.IOrganizationService orgService;
    public override void PreExecute()
    {
        Console.WriteLine("starting pre-execute");
        base.PreExecute();
   
        var connMgr = this.Connections.CrmConnection;
        var connectionString = (string)connMgr.AcquireConnection(null);
        var conn = new CrmConnection(connectionString);
        var orgService = (IOrganizationService)conn.GetCrmService(); // SOAP 2011
    }

    public override void PostExecute()
    {
        base.PostExecute();
    }

    public override void Input0_ProcessInputRow(Input0Buffer Row)
    {
        ColumnSet cols = new ColumnSet(
                        new String[] { "x_contact" });

        Entity contactIdentifier = orgService.Retrieve("x_contactidentifier", Row.CrmRecordId, cols);

        if (contactIdentifier.Contains("x_contact"))
       {
              Variables.ContactGUID = Convert.ToString(contactIdentifier.Attributes["x_contact"]);
       }

    }
}


When I comment out the call to "orgService" the error is no longer - which leads me to believe it may be something todo with the "Pre-Execute" Method.

Any help would be much appreciated - Thanks

Additional Information:

CRM 365 Online

SQL Server 2017


Kingswaysoft Businessunit question

$
0
0

Hi,

I am working on data migration from crm 2016(onprem) to dynamics 365(online) using kingswaysoft.

I am not sure how to proceed with the businessunit field. Our new d365 online got a new business unit when this new environment was created. In the SSIS package, to map the new businessunit field in target environment, how do I specify in the package? Thanks for any help!

Kingswaysoft data migration question

$
0
0

Hi,

I am using kingswaysoft to do a test migration from CRM 2016 onprem to Dynamics 365 online. It is working fine so far but I am stuck on how to map a new field(Option Set) in the destination that doesn't exist in source.

We are going to use a new field on one of the custom entities in Dynamics 365. And during migration, based on the other fields in source, this new field in destination needs to be updated with one of it's options.

In Kingswaysoft adapter, is there a way I can specify to update the new field value based on other field values? Right now, all I am seeing is 'Ignore' in source input column for this new field in destination CRM field(SSIS kingswaysoft).
Please let me know of any approach this can be handled. Thanks for any help.

how to disable prompting 2FA

$
0
0

Hi All,

I am admin and i have disabled the 2FA authentication in the user admin and also selected the password reset to None in Azure Directory, but when I try to log in, microsoft still prompt me to use the authentication App. With the prompting, I have noticed, all the connection in my third party tools like XRMtoolbox and Kingswaysoft SSIS tool is having problem connecting to the CRM server, since they do not support 2FA (kingswaysoft does not). Can anyone tell me what I am doing wrong. I get the below error in kingswaysoft when i try to connect:

TITLE: SSIS Integration Toolkit for Microsoft Dynamics 365 (v11.0.0.7160)
------------------------------

KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. (Error Code: FailedAuthentication) (SSIS Integration Toolkit for Microsoft Dynamics 365, v11.0.0.7160 - devenv, v14.0.25420.1)System.ServiceModel.Security.MessageSecurityException 

: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.System.ServiceModel.FaultException 

: Authentication Failure

------------------------------
BUTTONS:

OK
------------------------------

Kingswaysoft error - one or more invalid character

$
0
0

Hi All,

I am migrating Email entity from a spreadsheet via flat file in kingswaysoft to an online dynamic 365, every other fields migrated properly, except the DESCRIPTION field, it throwing this error - "CRM service call returned an error: The field 'description' contains one or more invalid characters." I have looked online for solution, with people saying they are line spaces, which i ckeaned, but still getting the same result. Can someone help me out with a suggestion please. 

 please look at the above. cheers 

Best way to migrate Activity entities Record from an excel file

$
0
0

Hi All,

Is there a best possible way to migrate data from a CSV file into Dynamics?. I have tried using kingswaysoft, but its not just working out. Anyone out there can recommend best possible option to migrate ACtivity entities into dynamics ?

Use Configuration Migration Tool to migrate data from CRM 2016 onpremise to Dynamics 365 online

$
0
0

Hello,

I'm searching for solutions to achieve the migration of Dynamics CRM 2016 onpremise data to new instance of Dynamics 365 online. I know I can try with Kingswaysoft, but I wonder if the Configuration Migration Tool could be useful to migrate ALL DATA for most of entities (including activities) and maintain the GUIDs.

Will I need to migrate CRM 2016 onpremise to Dynamics 365 onpremise before? Is the configuration migration tool good enough to accomplish this migration? Or is it better KWS, Scribe or Cobalt solution?

Thank you in advanced!

Assign a Column value to a Variable CRM Source

$
0
0

Hi,

I have a CRM application and i am pulling data using FETCH XML wrinting in Kingsway soft CRM source Editor (SSIS).

I am trying to save the value in a variable and use in later dataflow or connection manager set up for destination. I am having trouble assigning values to variable. Please help me on this.

I tried using below.

<fetch version="1.0" mapping="logical" aggregate="true">

 <entity name=@[User::tablename]>

   <attribute name=@[User::ColumnName] alias=@[User::tableAlias] aggregate="countcolumn" />

 </entity>

</fetch>


Add a dynamic variable value for a entity names and attributes in fetchxml

$
0
0

Hello every body I'm new in thos comunity; I'm currently use The Kingsway Soft SSIS Integration Toolkit for Microsoft Dynamics 365(CRM) and in my CRM Source Component(Editor) I would like to add this string

<fetch mapping='logical'>
    <entity name='@[User::EntitiesName]'>
    <all-attributes />
    <filter type="and" >
      <condition attribute="modifiedon" operator="ge" value="@[User::ModifiedOn]" />
    </filter>
    </entity>
</fetch>

The @[User::EntitiesName] variable is build at runtime; Also the value @[User::ModifiedOn]  is build at runtime. I received the error

System.Exception: There was an error when retrieving the CRM metadata for the entity or FetchXML query provided.
KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException:
 CRM service call returned an error: An error has occurred when retrieving metadata for CRM entity '': CRM service call returned an error:
 LogicalName is required when entity id is not specified(Error Code: -2147220989, Detail Message:
 LogicalName is required when entity id is not specified) (SSIS Integration Toolkit for Microsoft Dynamics 365, v8.1.0.6275 - devenv, v14.0.23107.0)
KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error:
LogicalName is required when entity id is not specified(Error Code: -2147220989, Detail Message: LogicalName is required when entity id is not specified)
System.ServiceModel.FaultException<KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.OrganizationServiceFault>: LogicalName is required when entity id is not specified
(SSIS Integration Toolkit for Microsoft Dynamics 365, v8.1.0.6275 - devenv, v14.0.23107.0)

My Questions are

1) Is it a real error ? so I must type  at compilation time, the value for @[User::EntitiesName] ?

2) Can I pass dynamically @[User::EntitiesName] at run time ?

plese se the Image

 

Best regards 

Don't see Kingswaysoft CRM tools in SSIS Toolbox

$
0
0

I'm trying to set up the development license version of the Kingswaysoft tool to use with Visual Studio for some CRM data imports. I'm having trouble getting the CRM tools to show up in the SSIS Toolbox though. I manage to connect to my CRM using the Dynamics CRM Connection Manager, but that's it.

I'm using:

  1. Visual Studio 2017
  2. IntegrationToolkit-DynamicsCRM(v7.4)-x64 and IntegrationToolkit-Dynamics365-x64 (tried both)
  3. Standalone SSDT installation
  4. SQL Server 2012 Integration Services
  5. Remote SQL Server 2012 
  6. Remote (not "CRM Online") Dynamics CRM 2015

I haven't found much information on how to troubleshoot this, as googling Kingswaysoft mostly leads to the website, not any install related discussions.

Data migration of Marketing Lists (Member Count)

$
0
0

Hi,

I am facing an issue in migrating MarketingLists (List) from CRM 2016 databse to CRM 365 online.

Marketing List migration is done but 'Member Count' field is showing wrong count. Example- When there are 10 members associated with the marketing list  it is showing Member count as '4'.

Migrated Marketing List and List members.

I have tried in 2 ways

1. Migrated Marketing List without mapping 'Member Count' from source to destination.

2. Migrated Marketing List by mapping 'Member Count' from source to destination.

In both ways I can see the count wrong.

Any one has idea how to migrate it to get correct member count.

Regards

Krishna

contractlinescheduleofvalue - invoice?

$
0
0

We found an issue where users are creating a record in the contractlinescheduleofvalue.

They then use this to create an invoice.

But then something happens and they do not post the invoice for several months.

So I have been asked that when an invoice is paid I go and check the date of the contractlinescheduleofvalue is within the same month as the invoice.

So far I have not been able to figure out the relationship coming from the invoice.

I am using kingswaysoft to do this update.

Can anyone help me out.

I am assuming I must be missing a table.

Thanks!!

Data Integration between MS Dynamics Online and on-premise Oracle

$
0
0

Hi Team:

Currently we have SSIS jobs that download and upload data between salesforce and on-premise oracle using a WSDL based connector. Now we want to replace Salesforce with MS Dynamics 365 online. Please keep in mind that i need to download Dynamics entities as well as update Dynamics entities (bi-directional data sync). What is the best option in your experience to connect to Dynamics via SSIS. I am trying to avoid third party connectors like kingsoft etc. if possible .

Thanks,

LJ

KingswaySoft D365 Web API OAuth - (401) Unauthorized

$
0
0
I'm using KingswaySoft (v10.2) and SSIS to migrate data to D365 (v9.1) for Customer Service (cloud version)
I'm getting the following error from Kingswaysoft in my SSIS package after roughly 1 hour of successful execution - this includes successful record insertion into D365 during this initial 1 hour. This happens every time and I'm not sure how to fix. If I restart my SSIS package then it will happily continue executing for another hour and the error will occur again.
[Dynamics CRM Destination 1 [1955]] Error: An error occurred with the following error message: "KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error: CRM service call returned an error: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Bearer authorization_uri=login.microsoftonline.com/.../authorize, resource_id=xxxxxxxx.crm6.dynamics.com'. (SSIS Integration Toolkit for Microsoft Dynamics 365, v10.2.0.6982 - DtsDebugHost, v13.0.1601.5)KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException
: CRM service call returned an error: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Bearer authorization_uri=login.microsoftonline.com/.../authorize, resource_id=xxxxxxxx.crm6.dynamics.com'.System.ServiceModel.Security.MessageSecurityException
: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Bearer authorization_uri=login.microsoftonline.com/.../authorize, resource_id=xxxxxxxx.crm6.dynamics.com'.System.Net.WebException
(Status Reason: Unauthorized): The remote server returned an error: (401) Unauthorized.".
 
I suspect that the issue is with the OAuth token expiry in Azure AD. If so, I thought KingswaySoft would automatically renew the token?
I'm using the following connection properties on my KingswaySoft connection.

Thanks for considering my question and any support you can provide!

Kingsway Web API Error : The URI segment '$ref' is invalid after the segment 'new_new_entityA_new_entityB'

$
0
0

Hello,

i am getting this erro when i try to use KingswaySoft Destination component on Upsert to make the link between two entities that have a N:N relationship :

The URI segment '$ref' is invalid after the segment 'new_new_entityA_new_entityB'  


Kingswaysoft - Text Lookup not accurate (CRM Destination Component)

$
0
0

Good day,

I'm using kingswaysoft Productivity pack (latest update) to create a custom entity record in CRM (online).

One of the destination components is a lookup to another custom entity and for this I use a text lookup.

Some of the records are failing and the error specified below.

Text lookup failed for ''custom field' field entity 'custom entity' does not contain a value of "text" for "entity field" field.

I have check and the records its trying to lookup do exist... so these records should not be failing... 

I have tried all the options within the Text Lookup Editor yet I still get the same error message that the record its trying to lookup does not exist :(

thanks,

Kingsway Web API Error : The URI segment '$ref' is invalid after the segment 'new_new_entityA_new_entityB'

$
0
0

Hello,

i am getting this erro when i try to use KingswaySoft Destination component on Upsert to make the link between two entities that have a N:N relationship :

The URI segment '$ref' is invalid after the segment 'new_new_entityA_new_entityB'  

Kingswaysoft error - one or more invalid character

$
0
0

Hi All,

I am migrating Email entity from a spreadsheet via flat file in kingswaysoft to an online dynamic 365, every other fields migrated properly, except the DESCRIPTION field, it throwing this error - "CRM service call returned an error: The field 'description' contains one or more invalid characters." I have looked online for solution, with people saying they are line spaces, which i ckeaned, but still getting the same result. Can someone help me out with a suggestion please. 

 please look at the above. cheers 

Best way to migrate Activity entities Record from an excel file

$
0
0

Hi All,

Is there a best possible way to migrate data from a CSV file into Dynamics?. I have tried using kingswaysoft, but its not just working out. Anyone out there can recommend best possible option to migrate ACtivity entities into dynamics ?

Use Configuration Migration Tool to migrate data from CRM 2016 onpremise to Dynamics 365 online

$
0
0

Hello,

I'm searching for solutions to achieve the migration of Dynamics CRM 2016 onpremise data to new instance of Dynamics 365 online. I know I can try with Kingswaysoft, but I wonder if the Configuration Migration Tool could be useful to migrate ALL DATA for most of entities (including activities) and maintain the GUIDs.

Will I need to migrate CRM 2016 onpremise to Dynamics 365 onpremise before? Is the configuration migration tool good enough to accomplish this migration? Or is it better KWS, Scribe or Cobalt solution?

Thank you in advanced!

Viewing all 397 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>