Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Multiple-step error....
Rafael S.
Posts: 66
 
Multiple-step error....Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Aug 11 2:13 PM
fiogf49gjkf0d

Hi Guys!! Im having a trouble in SalesLogix Campaigns.. When i try to add a group like a campaign target, gives me the error: "Multiple-step  operation generated errors. Check each status value .."


 


 


 


<p>  

Sub AddTargetsToGrid(strSQL, Grid, Label, strGroup, strType, blnDisplayMsg)
    Dim objRS, objGridRS
    Dim i

    cmdAddTargets.Enabled = False
    Set objRS = objSLXDB.GetNewRecordset
    objRS.Open strSQL, objSLXDB.Connection
    objRS.ActiveConnection = Nothing
    If DisplayAddTargetsMsg(objRS.RecordCount, blnDisplayMsg) Then
       Set objGridRS = Grid.Recordset

       For i = 0 To objRS.RecordCount - 1
           With objGridRS
                If .RecordCount > 0 Then
                   .MoveFirst
                End If
                .Find("ENTITYID='" & objRS.Fields(0).Value & "'") 'DNL

                'If the record wasn't found add it
                If .EOF Then
                   .AddNew
                   .Fields(1).Value = objRS.Fields(0).Value    'EntityID (key field constraint)
                   .Fields(2).Value = strType                  'Target Type            ###################> ERROR IN THIS LINE
                   .Fields(3).Value = strGroup                 'Group Name
                   .Fields(4).Value = objRS.Fields(1).Value    'Account
                   .Fields(5).Value = objRS.Fields(2).Value    'First Name
                   .Fields(6).Value = objRS.Fields(3).Value    'Last Name
                   .Fields(7).Value = objRS.Fields(4).Value    'Email
                   If not strType = "Lead" then
                   '  .Fields(8).Value = objRS.Fields(5).Value    'City
                   '  .Fields(9).Value = objRS.Fields(6).Value    'State
                   '  .Fields(10).Value = objRS.Fields(7).Value   'Zip
                   End If
                   .Fields(11).Value = objRS.Fields(8).Value   'Work Phone

                   If gBlnEditMode And Not gBlnShowPreview Then
                      AddToManageTargetsRS objRS.Fields(0).Value, strType, strGroup
                   End If
                End If
           End With
           objRS.MoveNext
       Next
       Grid.Recordset = objGridRS
    End If
    objRS.Close
    Set objRS = Nothing
    cmdAddTargets.Enabled = True
    EnableDisableButtons
    SelectFirstRecordForGrid(grdTargets)
End Sub



Function CreateTargetsRSStructure
    Dim objRS

    Set objRS = objSLXDB.GetNewRecordSet
    With objRS
        .Fields.Append "CAMPAIGNTARGETID", adVarChar, 12 'DNL
        .Fields.Append "ENTITYID", adVarChar, 12, adFldFixed 'DNL
        .Fields.Append "TARGETTYPE", adVarChar, 32, adFldIsNullable 'DNL
        .Fields.Append "GROUPNAME", adVarChar, 32, adFldIsNullable 'DNL
        .Fields.Append "ACCOUNT", adVarChar, 128, adFldIsNullable 'DNL
        .Fields.Append "FIRSTNAME", adVarChar, 32, adFldIsNullable 'DNL
        .Fields.Append "LASTNAME", adVarChar, 32, adFldIsNullable 'DNL
        .Fields.Append "EMAIL", adVarChar, 128, adFldIsNullable 'DNL
        .Fields.Append "CITY", adVarChar, 32, adFldIsNullable 'DNL
        .Fields.Append "STATE", adVarChar, 32, adFldIsNullable 'DNL
        .Fields.Append "POSTALCODE", adVarChar, 24, adFldIsNullable 'DNL
        .Fields.Append "WORKPHONE", adVarChar, 32, adFldIsNullable 'DNL
        .Open
    End With
    Set CreateTargetsRSStructure = objRS
End Function

Sub DefineTargetsGrid(objGrid)
    Dim col

    'CampaignTargetID column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "CAMPAIGNTARGETID" 'DNL
    col.Visible = False
    'EntityID column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "ENTITYID" 'DNL
    col.Visible = False
    'Target Type column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "TARGETTYPE" 'DNL
    col.Visible = False
    'Group Name column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "GROUPNAME" 'DNL
    col.Visible = False
    'First Name column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "FIRSTNAME" 'DNL
    col.Caption = Application.Translator.Localize("Nome")
    col.Width = 65
    'Last Name column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "LASTNAME" 'DNL
    col.Caption = Application.Translator.Localize("Sobrenome")
    col.Width = 75
    'Account column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "ACCOUNT" 'DNL
    col.Caption = Application.Translator.Localize("Company")
    col.Width = 160
    col.Sorted = 2
    'Email column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "EMAIL" 'DNL
    col.Caption = Application.Translator.Localize("Email")
    col.Width = 147
    'City State Zip column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "CITY" 'DNL
    col.Caption = Application.Translator.Localize("City")
    col.Width = 85
    col.Visible = False
    'State column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "STATE" 'DNL
    col.Caption = Application.Translator.Localize("State")
    col.Width = 45
    col.Visible = False
    'Zip column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "POSTALCODE" 'DNL
    col.Caption = Application.Translator.Localize("Zip")
    col.Width = 60
    col.Visible = False
    'Work Phone column
    Set col = objGrid.Columns.Add(0)
    col.FieldName = "WORKPHONE" 'DNL
    col.Caption = Application.Translator.Localize("Work Phone")
    col.Width = 95
    col.FormatType = ftPhone
    col.Visible = False
End Sub


 


 


 


 


Someone can help me?


 


Thanks!!


 


Rafael S.

[Reply][Quote]
Brian Segers
Posts: 69
 
Re: Multiple-step error....Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Aug 11 3:06 PM
fiogf49gjkf0d

HI Rafeal,


That error usually means the data is bigger than what the field will take or it is the wrong fromat like a string in a date field.


Since the value that you are referencing is Type my guess would be it is null and the field is not nullable or somone coded it to a value too large.


Your best bet is to run SLX Profiler and capture the SQL being passed during the error and then you should see the problem.


 


Best, Brian

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Multiple-step error....Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Aug 11 10:17 PM
fiogf49gjkf0d

What's the value and datta type of strType just prior to this statement?


 


   .Fields(2).Value = strType                  'Target Type            ###################> ERROR IN THIS LINE
[Reply][Quote]
Rafael S.
Posts: 66
 
Re: Multiple-step error....Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Aug 11 7:13 AM
fiogf49gjkf0d

Hi Brian!! Thanks for the answer!!! I will lookup for this..thanks so much!!


 


And RJ Samp, the value of strType is "Contact"...thats because i feel strange...because the value is not too long, and in the creation of the structure of recordset, the size is bigger than this string ("contact").... thanks for answer my post!!

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/23/2025 10:22:40 PM