SSIS 2012 with CozyRoc Data Flow task issue - excel

I am working on SSIS 2012 with CozyRoc for Dynamic CRM data imports.
I have created a package and in that I have two Data Flow task(DFT1 & DFT2).
DFT1 imports all the prof questions using Excel file(ProfQuestions.xls) as Flat file source.
DFT2 imports all the prof questions answer using another excel file(ProfQuestionAns.xls) as Flat file source.
In DFT2 excel file(ProQuestionAns.xls) I have QuestionID and many other columns and which can be referred to DFT1 excel file(ProQuestions.xls) having QuestionID, QuestionText column.
My Requirement is-
If there is at least one answer, the system shall display all questions, including questions without answer.
a) If there are no answers, no questions shall be displayed.
Let’s say I have got 4 questions answer out of 10 Questions in ProfQuestionAns.xls data files. The questions only having any answers will be there in this file but what about other remaining 6 Questions which will not be present in this ProfQuestionAns.xls file. How can I load those questions which are not there in DFT2 ProQuestionAns.xls data files but are there in DFT1 ProQuestions.xls data files?
It looks like by calling DFT1 from DFT2 can work as I am not sure. Is it possible?
Any samples or solutions would be appreciated. Please Help me to achieve this.
Thanks
DK

Related

Import excel file with relationship in Laravel

I've encountered a problem with importing an excel file in Laravel. I have a single excel file with multiple columns and an ER Diagram as shown below. I want to import that excel file to my Laravel project and my MySQL database will receive the exact information and relationship in my ERD. (
excel
ERD)
I've searched and found Laravel Excel (maatwebsite/excel) but I quite don't know how to implement it in my problem. Is that package possible in my case? I'm looking forward to your reply.
I'm using Laravel 8 and maatwebsite/excel 3.1.
This is the first time I posted here so I'm not allow to import images. Sorry for that. Thanks and have a good day!
Yes you can definitively use laravel Excel package.
You can have a look at the documentation here: https://docs.laravel-excel.com/3.1/imports/basics.html
If I understand correctly you want your data to be imported into several models and managing the relationships so you'll have to import your data and then handle the imported data in your scripts by creating every model and adding the relationships to each.

Read excel files with different schema is not supported now in Dataflow (ADF)?

I am having a lot of excel files in the data lake. I am trying to read in dataflow and getting below error
"Read excel files with different schema is not supported now."
All my excel files are in the same format having the same column names. However, it's still coming above error.
Nor sure what is the issue? Can anyone advise how to solve this?
I see this is a known issue and is documented in the official MS docs. Can please try their recommendations.
You most likely intend to pull from multiple sheets in a folder. All the sheets do not have the same schema and that's the issue I had.
You'd need to identify the file with a different schema or take out the file path where it says wildcard path
Remove content from the wildcard path

How to save shared excel file using openpyxl?

I am trying to save a shared excel file that I have edited with python 3.7 and openpyxl. When I save it, it removes the shared property of the excel. Got stuck at this. I just save it with workbook.save('filepath') command. I was not able to find anything related in the documentation.
Welcome to SO! As a general rule, please review the how to ask a questions guidelines.
I don't think you can currently do that with openpyxl as the functionality doesn't appear to be implemented in the ExcelWriter class.
Given that Microsoft is trying to deprecate shared workbooks in favor of co-authoring
Important: "Shared Workbooks" is an older feature that allows you to
collaborate on a workbook with multiple people. This feature has many
limitations, and has been replaced by co-authoring. Co-authoring is
available in certain versions of Excel, including Excel 2016 for
Office 365 subscribers.
I doubt that this ranks highly on the roadmap.
You could XML hack it together by setting the shared docflag in the raw xml app.xml under the docProps inside an xlsx file or by overriding the document module extended properties here.

How to create excel 2013 timeline from access

It's my first question here so please be easy on me..
I'm trying to create an excel report from a dataset i've created in MS Access as part of a MS-Access based large project.
This project has to run on many machines and to avoid reference errors i use late-binding.
My problem is that when i try to create (from Access) a Timeline using the "Slicercaches.add2" method my code fires error "5". As a test i've created the timeline from Excel-vba and i found that if i use the "XlTimeline" constant it works, but if i use the "2" value not . Is there a way to use the Xltimeline constant inside Access-Vba without reference to excel libraries??
Thanx in advance
MF
First off, welcome to Stack Overflow. Without seeing your VBA code, answering your question would mostly be speculation. As a common practice, it is always beneficial to show the code you're working with (same concept as a picture is worth 1000 words). With that being said, working with Excel objects (or any other office application) requires that you import the necessary libraries. With the Excel library imported, you can essentially do anything to an excel file using the Excel object. Is there a particular reason you would like to refrain from using the Excel library?

User option in Access to select unique filepath for Excel source data

I am working off of a great solution created by #MattHall from 2011 to a question that I also shared about importing a dynamic range from Excel into Access.
Specific to that--though in general for future VBA's--my question is whether there is an additional way to be able to point to the Excel source file if it is moved without having to go into the VBA editor every time?
For my specific needs, I am trying to work on these Access and Excel files with others through a shared BOX that has a different file path for whoever is working on it.
USER 1 may be: C:\Users\USER1\Box Sync\filename.xlsx
USER 2 may be: C:\Users\USER2\Box Sync\filename.xlsx
...and so forth for any other users. I am curious how we can all work off this when the file path used in the VBA created and used by USER1 is not accessible by USER2? Could there be some code that allows for the every user to locate the file each time through their own filepath?
It would be a pain to do that but I also do not know a better option as we are not working off a shared server and this is unfortunately limited to Box share at the moment.
EDIT: If anyone could also suggest how to integrate their recommendation into the 'Dynamic Range' code in solution from #MattHall in the linked Stackoverflow, that would particularly helpful to my request.

Resources