SharePoint Designer - Splice repeating data into separate lists?
I'm a beginner with SharePoint Designer (for SP 2010), so please let me know if you need more info on the question below in order to determine the feasibility.
We have an InfoPath 2010 form that has a repeating section with several fields, one of which is an Approved/Not Approved radio button. The form can be used to house a mix of approved and not approved entries. The stakeholders would like to then
have that form populate two separate lists—one with the approved entries and one with the entries that were not approved. Since this information repeats and is merged into one column/one cell on the original SharePoint library, I’m not having any
success splitting that data out so that Not Approved lines go to one library and Approved lines go to another. I’ve been playing around with it but so far can only get an all or nothing entry to show up in one of the lists.
Is this possible with SharePoint designer to do this, or is it best to advise our stakeholders to change the form design to only accept one client per form?
I appreciate any assistance!
Hi Lennie,
You cannot do this with SharePoint Designer or directly with InfoPath form. You need to write code to submit data from repeating table to separate lists. See this for reference:
http://www.infopathdev.com/blogs/matt/archive/2006/02/02/Add-SharePoint-List-Items-with-InfoPath.aspx
http://www.bizsupportonline.net/infopath2007/how-to-submit-items-rows-repeating-table-infopath-sharepoint-list.htm
Or use 3rd party tools like Qrule from Qdabra. Hope it helps.
Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***
Similar Messages
-
How to add data into a List box
CS3 SDk:Windows<br /><br />Hi all,<br />I am trying to add data into a basic List box in CS3??<br /><br />// .fr<br />GenericPanelWidget<br /> (<br /> // CControlView properties<br /> kInvalidWidgetID, // widget ID<br /> kPMRsrcID_None, // PMRsrc ID<br /> kBindNone, // frame binding<br /> Frame(0,0,250,90) // left, top, right, bottom<br /> kTrue, // visible<br /> kTrue, // enabled<br /> // GroupPanelAttributes properties<br /> "", // header widget ID<br /> { <br /> <br /> WidgetListBoxWidgetN<br /> (<br /> kWFPListBoxWidgetID, kSysListBoxPMRsrcId, // WidgetId,RsrcId<br /> kBindAll, // Frame binding<br /> Frame(0,0,250,90) // Frame<br /> kTrue, kTrue, // Visible, Enabled<br /> 1,0, // List dimensions<br /> 19, // Cell height<br /> 1, // Border width<br /> kFalse,kTrue, // Has scroll bar (h,v)<br /> kTrue, // Multiselection<br /> kTrue, // List items can be reordered<br /> kTrue, // Draggable to new/delete buttons<br /> kFalse, // Drag/Dropable to other windows<br /> kTrue, // An item always has to be selected<br /> kFalse,// Don't notify on reselect<br /> kFalse, <br /> { <br /> } <br /> <br />),<br />},<br />),<br /><br />//-------ID.h--------<br />DECLARE_PMID(kWidgetIDSpace, kWFPListBoxWidgetID, kWFPPrefix + 2)<br /><br />//observer.cpp-----------WFPDialogObserver::Update<br /><br />//get currently selected/active widget <br />WidgetID theSelectedWidget = controlView->GetWidgetID();<br /><br />// ist it the text edit field? <br />if (theSelectedWidget == kWFPInsertButtonWidgetID && theChange == kTrueStateMessage) <br />{ <br /><br />IControlView* listBox = panelControlData->FindWidget(kWFPListBoxWidgetID);<br /><br />InterfacePtr<IListControlData> listControlData(listBox, UseDefaultIID()); <br /><br />//Insert the string into listbox <br />PMString strText = dialogCtrl->GetTextControlData(kWFPTextEditBoxWidgetID); <br /><br />// obviously there can't be a translation for text entered by user <br />strText.SetTranslatable(kFalse);<br />listControlData->Add(strText,kWFPTextEditBoxWidgetID); <br />dialogCtrl->SetTextControlData(kWFPTextEditBoxWidgetID, ""); <br />break; <br /><br />I am not able to Add items into list box.<br /><br />I tried based on Discussion <br />http://www.adobeforums.com/webx/.3bc43877<br /><br />but not able to locate SDKListBoxHelper file .it is not available in SDK.<br /><br />Please ,<br />Tell me Where I am going wrong.<br /><br />Thanks,<br />Adil
resource VSPDialogWidget (kSDKDefDialogResourceID + index_enUS)
__FILE__,
__LINE__,
kVSPDialogWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Binding
Frame(5,0,491,266) // Frame (l,t,r,b)
kTrue,
kTrue, // Visible, Enabled
kVSPDialogTitleKey, // Dialog name
DefaultButtonWidget
kOKButtonWidgetID, // WidgetID
kSysButtonPMRsrcId, // RsrcID
kBindNone, // Binding
Frame(9,234,89,254) // Frame (l,t,r,b)
kTrue,
kTrue, // Visible, Enabled
kSDKDefOKButtonApplicationKey, // Button text
CancelButtonWidget
kCancelButton_WidgetID, // WidgetID
kSysButtonPMRsrcId, // RsrcID
kBindNone, // Binding
Frame(394,234,474,254) // Frame (l,t,r,b)
kTrue,
kTrue, // Visible, Enabled
kSDKDefCancelButtonApplicationKey, // Button name
kTrue, // Change to Reset on option-click.
WLBCmpListBox //Tree view
kWLBCmpListBoxWidgetID, kPMRsrcID_None, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(299,49,475,170) // Frame
kTrue, kTrue, // Visible, Enabled
kTrue, // EraseBeforeDraw
kInterfacePaletteFill, // InterfaceColor
kHideRootNode | kDrawEndLine, // Options. Display root node
kFalse, // Use H Scroll bar
kTrue, // Use V scroll bar
20, // fVScrollButtonIncrement
20, // fVThumbScrollIncrement
0, // fHScrollButtonIncrement
0, // fHThumbScrollIncrement
2, // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection
kFalse, // Allow children from multiple parents to be selected
kTrue, // Allow discontiguous selection
//The tree view is dynamically created.
// added to support the list elements in the list box
resource LocaleIndex (kWLBCmpListElementRsrcID)
kViewRsrcType,
kWildFS, k_Wild, kWLBCmpListElementRsrcID + index_enUS
resource WLBCmpNodeWidget (kWLBCmpListElementRsrcID + index_enUS)
__FILE__, __LINE__,
kWLBCmpListParentWidgetId, kPMRsrcID_None, // WidgetId, RsrcId
kBindLeft | kBindRight, // Frame binding
Frame(0, 0, 194, 20), // Frame
kTrue, kTrue, // Visible, Enabled
"", // Panel name
// Just a info-static text widget with about-box text view to get white bg.
WLBCmpTextWidget
kWLBCmpTextWidgetID, kPMRsrcID_None, // WidgetId, RsrcId
kBindLeft | kBindRight, // Frame binding
Frame(45,1,194,18) // Frame
kTrue, kTrue, kAlignLeft,kEllipsizeEnd // Visible, Enabled, Ellipsize style
"", // Initial text
0, // Associated widget for focus
kPaletteWindowSystemScriptFontId, // default font
kPaletteWindowSystemScriptHiliteFontId, // for highlight state.
If you still got problems, post you email here - I'll send you the complete project/code then.
-Marc -
SharePoint Designer Workflow to email multiple recipients listed in a custom list
Hi all,
I created a workflow in designer attached to a form library. I also have a custom list "Admins" containing names of persons that serves a different purpose but would also like to be used as recipients for the workflow email everytime a new item in the
form library is created.
I have been searching the net and tried out few work arounds but so far able to send to only one person in the "Admins" list. The list has a column "Admin Name" which is of type "Person or Group".
Thanks in advance!You will not be able to do this specific task with SharePoint Designer workflows. Like you stated, it can only target a specific value, based on the value in anoter column. The easiest work-around would be to create a SharePoint security group
that contains the users, then target that group in the Send Email action. Just make sure that the group is configured for membership to be visible by all users. I know it is not ideal to manage information twice, but this is a limitation of SharePoint
Designer.Chris Caravajal MCTS SharePoint911 Consulting & Support Services -
SharePoint Designer Reuse Field Data from Prior Task Process
So, I have a SP2013 WF. One of the actions in the WF is to "Assign a Task Action" to permit any one of the assignees (yes, it's going to multiple people) to Approve, Reject, or Request Clarification on the item. I've added a text field to the
custom content type called "Approval Comments" where I would like whichever approver completes the task to provide information, but must especially if the Outcome is "Request Clarification"... But of course, since Task Actions don't have
a workflow variable that tracks the "Task ID" of the action (I assume this is because there are as many WF tasks created as there are participants in the request, so there isn't any single ID related to the WF), I can't have the WF do a lookup to
the WF Task and find the comments associated with the task. I also don't have any way to push the contents of that field back into the list item being approved. Surely, there is some magical way I can filter the workflow tasks list and somehow find the relevant
item without the risk of having multiple hits...isn't there??? I really don't remember things being so incredibly difficult in SP2010 workflow tasks...Hi,
For your issue, you can refer to the actions as below:
1.Create a Parallel Block.
2.Ceate a Loop with condition: Variable: Outcome
equals
Request Clarification.
3.Assign a task to an approver using Assign a task action.
4.Repeat 2,3 steps for other approvers.
By this way, you can get the Task ID and loop approving process while task outcome equals Request Clarification.
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to convert a flat/hierarchical data (which I get from Excel as 2D Array) to XML format in Flex. The following is my Hierarchical Data:(Table form)
Asia
India
Chennai
TN
Category1
Product1
100
Asia
India
Mumbai
MH
Category1
Product1
100
Asia
India
Calcutta
CT
Category1
Product1
100
Asia
India
Calcutta
CT
Category2
Product2
200
EMEA
UK
London
LN
Category3
Product1
122
EMEA
UK
London
LN
Category3
Product2
201
EMEA
UK
Reading
RN
Category1
Product1
123
EMEA
UK
Reading
RN
Category1
Product2
455
I need to format/convert this to XML format so that I can populate that resulting xml as dataprovider to a Tree control.
I need to populate the above data into Tree component such that I get the following output:
Asia
India
Chennai
TN
Category1
Product1
100
Mumbai
MH
Category1
Product1
100
.............goes on till last numerical data of above tableTry this into json then to xml. I did similar one using PHP and JSON.
-
Please help !!!! How to get data into dropdown list box
Hi all,
I want to display data from ResultSet object to drop down
list box in my JSP form.
How should I proceed ?
Please help me what should I do ?
Thanks for any help in advance.
savdeep.dear hermione
it depends on the compexity of the application
i could also have suggested to use a JSP custom tag
that can populate the values stored in a table. I
guess u must have used that approach too.
But why to make the things complicated when they can
be done in an easier manner.
The author seems to be a beginner and telling him to
call Helper classes just to make a drop down is not
at all feasible.
what do u say?I believe it is best to start with a proper approach than finding quick solutions. Of course, JSTL sql tags allow you to execute queries within the JSP but they look cleaner in code.
Certainly, if the OP is a beginner in JSP (presuming that he has some background of core Java and OOP), I don't see any reason why there should not be a separate class with a well-defined responsibility. This will help the OP develop a thinking towards designing a good solution rather than simply patching in bits of procedural code to get the job done. There is a difference in doing something and doing in properly. :)
I suppose I am a little wary since I have been working too long maintaining code developed by others. A simple change in the requirement needs a lot of impact on several components. -
Hi
I am too new to this and still tring to learn. Well here is what I am into. I am trying to make a simple product catalog, using native components
a combobox to display DISTINCT health issues
a listbox to display the products associated to the selected health issue item in ComboBox
a textarea to display complete information about the selected product in listbox
Data comes from single external xml file.
I was able to start off with Combo, but I don't know how to display DISTINCT ITEMS IN IT? Now it display all items including duplicates. Then I added eventlistener to Combo, which on change, the data for selected item is displyed in Textarea, but i don't know how to hook this to List component.
All files available here:
https://docs.google.com/folder/d/0ByHOlDbL5njbX1FFd1UtTFNzMTg/edit
Sure some of you can do it so easy. Appreciate your time and help.
Thank you
KristteeFilter the XML before using it to create your dataProvider http://joshblog.net/2007/05/17/filter-xml-data-with-e4x-in-flash-part-2/
-
Filtering data into separate worksheet
Hi all,
I think this is easy stuff but have struggled to find the answer...
I have a worksheet with various bits of information. It's a list of stock items; about 2000 lines long so far. Each line has various pieces of information including the item's category i.e. chairs/tables/lighting etc. This category is selected from a dropdown list. What I would like is for the line of information (columns a to p) to be duplicated onto another worksheet which shows only e.g. chairs.
This is a master list which I will add to over time so I'd like future items to automatically feed into the individual chairs, tables of lighting worksheets too.
Apologies if I haven't explained this well. Perhaps if I could explain it better I might be able to find the answers by searching online!
Any help much appreciated. Maybe even rewarded with cake.
Many thanks,
MeelyMacHi MeelyMac,
How about something like this?
You add an "index" column to your 'Master' table. The formula in D2, copied down is:
=C2&COUNTIF(C$2:C2,C2)
Then you set up breakout tables for each category, with the category name in A1.
The formula in A3, copied right and down, is:
=INDEX(Master::A,MATCH($A$1&ROW()−2,Master::$D,0))
Or to prevent the red triangles (as I've done in the Tables table wrap the formula in IFERROR, like this:
=IFERROR(INDEX(Master::A,MATCH($A$1&ROW()−2,Master::$D,0)),"−")
Once you have one breakout table working correctly you can "clone" it as needed and enter a different category in A1.
MATCH and INDEX look and sound intimidating but they are actually pretty simple when you get used to them. MATCH gets the number of an item in a list. INDEX looks up the value (here in another column) based on that number.
And don't forget that in Numbers 3 it is often just as convenient to just work with filtered views of the 'Master' table as it is to go to the work of creating separate tables:
SG -
How can use a script to separate data into separate sheets?
For example sake, I have three columns: Food Eaten (lbs), Date, and Pet (Fido, Penny, Whiskers). I'd like to tease the data apart such that the data for the first two columns for Penny, Fido, and Whiskers all appear on different sheets.
Thanks in advance
Solved!
Go to Solution.Hi FCW,
I created a DataPlugin to read in your Excel data file-- if you happen to have DIAdem 2010 (11.2) or later you'll be able to use it. Otherwise just load the file however you were loading it before so that your 4 data channels are the only ones in the Data Portal, then run the "DataFileWhisperer.VBS" script in DIAdem SCRIPT.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
Attachments:
FuelCellWhisperer.zip 7 KB -
Having trouble with sharepoint Designer.
I am new to sharepoint and have found it very unwelcoming. I need to edit a list for our company and for some reason i can not seem to figure out how to do it. i navigate to the page i need click edit in designer and go to edit the form. I can add a row
below were i need to but when i go to add a box to type into the other boxes are known as form fields. and all i have found are text boxes. it would be great if someone could give me step by step directions on how exactly to make this happen.
Fyi. its sharepoint designer 2010. Window 7 64Bit.
Thanks,
Kai M.Hi Kai,
Here is the references of using SharePoint designer to edit form for a list:
http://office.microsoft.com/en-in/sharepoint-designer-help/create-a-custom-list-form-using-sharepoint-designer-HA010378258.aspx
http://sharepoint-videos.com/sp10-webinar-modifying-sharepoint-list-forms-using-sharepoint-designer-2010-and-infopath-2010/
In addition, I'd recommend using InfoPath form to customize form for SharePoint list:
http://office.microsoft.com/en-in/sharepoint-designer-help/edit-list-forms-using-infopath-2010-in-sharepoint-designer-HA101631624.aspx
http://msdn.microsoft.com/en-us/library/office/gg180738(v=office.14).aspx#ip2010CustomizeList_Pt2
Regards,
Rebecca Tu
TechNet Community Support -
Hey there
I was wondering if anyone could shed some light on our current issue using SharePoint Online (hope this question is in the correct place)
We are using SharePoint Online and I believe we are using the SharePoint Plan 1 for EDU - which I believe is the A2 Free plan.
I have being trying to get my head around the new changes (as we currently run a standalone 2010 deployment) and decided to see what workflow options I had. I had read to use SharePoint Designer 2013 with the online service and after installation opened
the package, connected to the site and tried to create a simple email workflow. I first saw a loading screen stating
"The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly strong name is Microsoft.Activities, Version 1.0.0.0, Culture=neutral, PublicKeyToken=731bf3856ad364e35.
Contact your server administrator for more information."
after this it tried loading some metadata and then I saw:
Server-side activities have been updated. You need to restart SharePoint Designer to use the updated version of activities.
I close SPD down and rebooted and then same happened again and continues too.
After research I applied a hotfix that was known to resolve the issue, but it still remains. I also tried running SPD in admin mode but the same still happens.
Lastly I tried selecting workflows 2010 from the drop down field when creating the workflow to see what happened. I go the same. I also keep getting the following as a pop from time to time.
The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly strong name is Microsoft.Office.Workflow.Actions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c.
Contact your server administrator for more information.
I have also tried to do the same in SharePoint Designer 2010, but receive the same massages.
What should I be looking at or doing to help rectify this?
Regards
RDHuninstalled Language Pack and it worked!
Uninstalling the Preview and installing SharePoint Designer 2013 resolved the error.
http://community.office365.com/en-us/f/154/t/74327.aspx
According to the link as linle provided, there are two deletions in local, please double check these two places:
1.Delete all folders in the following directory:
C:\Users\USER\AppData\Roaming\Microsoft\SharePoint Designer\ProxyAssemblyCache\
2.Delete the files in all folders in this directory:
C:\Users\USER\AppData\Local\Microsoft\WebsiteCache\ (don’t delete the folders, just delete the contents of the folders)
Then, try to create a new workflow in SharePoint Designer 2013 to see if it works.
You can first keep the list for the current status, and save it as a template which will be used to create another list.
1.Login and locate the associated list on your SharePoint Online.
2.Click List Settings under List tab, and click Save list as template.
3.Type a File name, Template name, select Include Content, and click OK. Click OK.
4.Click Site Actions->More Options->List.
5.Locate and click the newly saved template, type a name, and click Create.
Then, create a workflow in your SharePoint Designer 2010 associated to the new list to see if it works.
Moreover, please check if there are any maintenances on your SharePoint Online which may cause the issue.
1.Login to Office 365 Portal (https://portal.microsoftonline.com/).
2.Click Service Health in the left pane of Admin page.
3.Check the status of SharePoint Online
If this helped you resolve your issue, please mark it Answered -
How to send the output into separate file..(from spool)
Hi friends,
i was create a executable program .. it was executing fine.. imagine.. my program is just fetching the data from MARA table based on some conditions.. every thing is fine.. and i'm getting the output also..
but i want to save this output in a separate file.. that means.. what can i do.. my program is executing background... so, i want to save this out put in a file... so, can any one plz provide me the coding steps...
i dont know coding.. I'm learning ABAP... so, can you plz provide the exact coding..for storing these data into separate file from spool..
help ful answers will be rewarded
Thanks
Babuhi
if you want the o/p data in the seperate file in-addition to the spool
call FM : 'GUI_DOWNLOAD'
pass file name as
w_localfile = 'C:\fite.txt'
itab
= the final o/p table
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = w_localfile
filetype = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = itab
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
thanks & regards
vinsee -
Split imported XML data into multiple text fields
I should first describe my final project because it is very possible that I am going about this entirely wrong!
I am trying to create an interactive PDF file which is the floor plan of our office, when you mouse over the office spaces it would popup the info for the person in that office, in fact when you click on the office space it would show additional info like computer MAC and jack numbers
I placed the floor plan as a layer and them created a second layer with no fill/no stroke rectangles over the offices and made them buttons (office01, office02)
I then made text fields with the info for the people, one for regular info and one for extra info (office01-data, office01-Xdata) I made these text fields buttons as well and had them "hidden until triggered"
These info fields are all on top of one another, as in the are all the same size and in teh same location
Then I went to the office buttons and created events "On Roll Over" "Show/Hide Buttons and Forms" and changed the visibility of the corresponding info button.
This works like a charm!
I hope I am clear up to this point.... my problem now is I would like to import this data both regular and extra from an excel spreadsheet or an XML file.
That way when we get new staff or people move offices or whatever I can update the spreadsheet or XML file, rerun my InDesign file and create a new interactive PDF
I have created the XML file
<staffMap>
<staff>
<name>John Doe</name>
<computerName<gfth56df</computerName>
<phoneMAC>00:08:00:AB:CD:EF</phoneMAC>
</staff>
<staff>
<name>John Smith</name>
<computerName<gfth06cb</computerName>
<phoneMAC>00:08:00:11:22:33</phoneMAC>
</staff>
</staffMap>
Created a new InDesign document
Imported the XML and placed it in a text field
saved as a template and closed it
Reopen and import the XML data again... and it brings it all into the text field... wonderful and useful but not what I need.
Is it possible to import the XML data into separate test fields, or into some other separate field that I can make into a button and show/hide?
I may end up just entering all the data directly into InDesign as I know this will work, it just does not seem like the right way to do it.
Thanking you all in advanceI am still looking to get some help with this.
I would love to know if it is not possible or any ideas at all -
Greetings.
I have successfully worked out inserting SQL data (2008 R2) into my 2010 SharePoint list (New, Update, Delete) by creating an SSIS Data Flow Task as outlined here:
http://fsugeiger.blogspot.com/2010/01/synchronise-sql-table-with-sharepoint.html
However, the problem I am running into is inserting data into the SharePoint Columns that are "Lookup" column types. I verified that all of the values I am copying from SQL into the SharePoint lookup column exist in the customn list it is pointing to. It
is important to have this column be a lookup column as it links to another custom list that has many more columns of related information.
I have read and re-read the SharePoint SSIS Adapters 2011.docx from
http://sqlsrvintegrationsrv.codeplex.com/ and the only section that seems to apply is this:
"Looking Up Values in a SharePoint List
If you have to look up a value in a SharePoint list, you can use the Lookup transformation in your data flow, and use the SharePoint List source to load the lookup table. You may have to add a Derived Column transformation or a Script component that splits
data in the lookup column on the ";#" delimiter to separate the ID value from the description.
If you are replacing values in your data with the values that you look up in the list, then loading the changed data back into SharePoint, you only have to include the ID from the lookup column. SharePoint ignores the description if you include it."
I am not sure if the above statement means that I should be passing the assocaited ID's other than the actual data into the SharePoint List destination. If that is the case, that will not really work as the lookup contains hundreds of rows. Not too mention
I have several of these lookup column types pointing to several different lists.
Any guidance in how I can put data into a SharePoint Lookup column type via Data Flow Task would be so much appreaciated.
Thank you.
My errors are:
Error: 0x0 at Data Flow Task, SharePoint List Destination: Error on row ID="1": 0x1 - Unspecified error, such as too many items being updated at once (batch), or an invalid core field value.
Error: 0xC0047062 at Data Flow Task, SharePoint List Destination [1903]: Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.PipelineProcessException: Errors detected in this component - see SSIS Errors at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListDestination.ProcessInput(Int32
inputID, PipelineBuffer buffer) at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
Error: 0xC0047022 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "SharePoint List Destination" (1903) failed with error code 0x80131500 while processing input "Component Input" (1912). The identified
component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and willI have found a solution to my problem and thought I would share it here in case there are others who are struggling with the above scenario. If you have a better way, I would love to hear about it since my way is a bit tedious.
In a nutshell, in order to have an SSIS package put data from an OLE DB Source into a SharePoint List Destination Lookup Column, you need to pass the ID of the value that is being looked up, not the value that is in the “master” OLE DB source.
Rough explanation, OLE DB Source value for column “Approp” is “4005” --> SQL matches “4005” with the ID in the new lookup table (“4005” = ID “5” as defined in the SharePoint lookup list) --> “5” gets passed into SharePoint List destination lookup
column --> SharePoint displays “4005” and successfully links to the lookup list.
Funny thing (not really), the error(s) outlined in my original post are not related in getting data into a SharePoint Lookup column as I am now successful in getting data into the system but I am still getting the same above error(s). I think it has to do
with the ID column in the SharePoint list destination. What I can’t seem to figure out is why since I am not linking any data to that ID column (at least on new records). I am however linking it on Update and Delete and the errors mentioned above disappear
and things work well.
There are three tasks that need to get done in order to get data from SQL into a SharePoint lookup column assuming you have already set up your SharePoint lookup lists:
1. Create new lookup table(s) in SQL that has the IDs from the SharePoint Lookup list and the values coming from the “master” OLD DB Source. You can see the ID column in SharePoint by toggling it on in a view.
2. Create a SQL command that JOINs all the databases and tables so that the ID is passed and not the value into the SharePoint lookup column
3. Change the “Data access mode” to “SQL Command” instead of the “Table or view” in the OLE DB Source and paste your command into the “SQL command text:” area.
Other helpful info is that you may also need to add additional columns in the new lookup tables in SQL for the scenarios when the data is not unique. You can see this two times in my SQL command example for Units and JobTitles:
SELECT
pps.SSNm,
pps.file_updated,
pps.Employee_id,
/* pps.CheckDistNm,*/
Check_Distribution_id = COALESCE( d.ID, 0 ),
pps.Job_nbr,
pps.SeqNm,
pps.action_eff_dt,
Fund_id = COALESCE( f.id, 0 ),
Appropriation_id = COALESCE( ap.id, 0 ),
ActionCode_id = COALESCE( ac.id, 0 ),
SpecNumber_id = COALESCE( jt.ID, 0 ),
pps.Employee_id,
/* pps.Fund,
pps.Approp,
pps.Unit,*/
Unit_id = COALESCE( u.ID, 0 ),
PosNm,
PosCode,
pps.LastName,
pps.FirstName,
pps.MI
FROM
x_PPS.aReportVw.pps_screens_active AS pps
LEFT OUTER JOIN dbo.DistributionNumbers AS d ON
pps.CheckDistNm = d.Check_Distribution
LEFT OUTER JOIN dbo.Units AS u ON
pps.Fund = u.Fund AND
pps.Approp = u.Approp AND
pps.Unit = u.Unit
LEFT OUTER JOIN dbo.Appropriations AS ap ON
pps.Approp = ap.Approp
LEFT OUTER JOIN dbo.Funds AS f ON
pps.Fund = f.Fund
LEFT OUTER JOIN dbo.ActionCodes AS ac ON
pps.ActionCode = ac.ActionCode
LEFT OUTER JOIN dbo.JobTitles AS jt ON
pps.SpecNm = jt.SpecNumber AND
pps.JurisClass = jt.JurisClass -
Hi,
As a part of new requirement in my project I am supposd to work on SharePoint 2007. I have one List (BCExtract - Main list) with all data related to an Application (like ID, name, app manager RTO etc).
I have created another list which has form to be filled by a user (with details about his/her applications). My requirement is that when the user enters AIT ID then the page should refresh (probably after hitting enter) and other details like Application
name, RTO etc which is present in another list gets auto populated depending on the AIT ID (unique column) entered so reduce the burden on the user.
Please suggest me how this can be done. I do not have permission for obtaining SharePoint Designer and I do not know JQuery. Infopath is ok but if this can be done through SharePoint 2007 alone then it would be great.
Thanks....Hello,
You can either use jquery/jaavscript or infopath form to achieve this. There is no default way to do this.
I would suggest jquery because you can put script in newform/editfor.aspx page using content editor webpart. Refer this link for jquery:
To get value from list:
http://social.technet.microsoft.com/Forums/en-US/ac47fe2a-ccb6-4f5b-b274-703aecc6cb0a/get-list-items-in-sharepoint-2010-by-using-jquery
http://www.robertkuzma.com/2010/08/read-list-items-using-sharepoint-web-services-and-jquery/
To set value in column:
http://paulgalvinsoldblog.wordpress.com/2009/06/13/quick-and-easy-use-jquery-to-set-a-text-field%E2%80%99s-value-on-a-sharepoint-form/
http://spservices.codeplex.com/discussions/468729
If you use infopath form, then you need to create two data connection to get data from both lists. Later you can set value in fields based on selection using rule. This can be possible without code.
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help
Maybe you are looking for
-
How do I transfer itunes music to my iphone 4 without using the restore from this backup function? I cannot use the back up function as have been advised that therer are bugs in it and restoring it back to my phone will bring the bugs with it and ph
-
Static text in a MC appears distorted
I created a site for a client and they are experiencing something weird with the top links in the base SWF. The links appear to be distorted or doubling up. I don't have anything extra in the MC. And what's worse is that I can't see this effect on an
-
Dear All, While doing the setting for tax code in FV11, I have created two Tax codes L0- JMOP 0%(BED),JMOC 0% and JMOS 0% I1-JMOP 16%(BED),JMOC 2% and JMOS 1% in condition record for same vendor,plant and material combinat
-
I bought Photoshop Elements from Costco Can't find serial number
Help me locate a serial number please
-
Get texture file size, resolution and type.
Hi! My script parsing every layer of AE Composition and creating the list of used textures (files). Then copy files in one folder. But I would also to compute overall size of all files and to warn user if he break the limit (for example, 10MB for all